Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Max
Project 3 Part 1 v1.1
numeroleidodeordeninverso
Swap.c
tyiy
Programação em C, testes
B_141111_Divisores
Multiple If statements v.09
menu
1.8 Parallizing for loop
Please log in to post a comment.