Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Command Expressions in Gnu C: What Does Return Return?
//gcc 5.4.0 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> int global = 13; int foo(void) { return global += ({ int y = rand (); int z; if (y > RAND_MAX>>1) z = -2; else z = 2; return z; 0*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
Assignment 7
2
Replacing Evens and Odd with ones and zeroes in a 3-Dimensional array
EL PANGRAMA PERFECTO
C code to compare two texts in form of array of chars ignoring the capitalization
CstructProduct
150113_ArrayOrdenado
otro avance de pregunta 2
B_141202_funcionesString
Max of arrays