Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Command Expressions in Gnu C
//gcc 5.4.0 #include <stdio.h> #include <stdlib.h> #include <unistd.h> int foo(void) { return ({ int y = rand (); int z; if (y > RAND_MAX>>1) z = -2; else z = - 1; z; }); } int main(void) { printf("Hello, world!\n"); for (;;) { sleep(1); int t = ({ int y = foo (); int z; if (y > 0) z = y; else z = - y; z; }); printf("T is %d \n", t); }; return 0; }
run
|
edit
|
history
|
help
0
arrows
If then price calculation v1
Assignment 5 part 2
14th Feb Programming Project v.01
Nearly working
PRACTICE 1
Dangling
Majeur ou mineur
GCC supports 128-bit integer arithmetic
printing float 2 pointers