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
gcc compiler code for delay
thermal_containers
Lab 8 part 2 v.06
pattern 12
Project 3 Part 1 v0.5
18BCE2182 ASSESS_1 Q1-6
Assignment 7
MATRICES DE CARACTERES
Print Bash Version.c
Avance de guia 4- Pregunta 1