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
Lab 11 v.05
FUNTION4
BSEARCH() WITH STRUCT
Comment.c
implicit parameter type
Spring 2017 Project 2 v.05
a1
pointer_swap
muuchas funciones utiles
Project 3 part 2 Book v1.1