Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Command Expressions in Gnu C: What's the value of a loop? void!
//gcc 5.4.0 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> int global = 13; int foo(void) { int z = 1; return global += ({ for (int i =0; i <100; i++) z = i * z;}); return 19 * z; } int main(void) { srand (time (0)); printf("Run 0x%08X: global = %d\n",rand(),global); for (int j=0; j < 10; j++) { int coin = foo(); printf("\t %d) coin is %d global = %d \n", j,coin,global); }; return 0; }
run
|
edit
|
history
|
help
0
PPCG partial solution to https://codegolf.stackexchange.com/q/120870/61563
20171127_ARRAY_ValorMayor
ponyerb orange panther
Midterm practice 2
pth_monte_carlo_pi.c
piesa perdida
tom grey wolf
mohan
Prime check
printing numbers without using loop