Last active
August 29, 2015 14:11
-
-
Save fclairamb/724dfeb486b85f6158d3 to your computer and use it in GitHub Desktop.
variable size object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef SHELL | |
gcc -std=c99 -Wall -Werror $0 && ./a.out | |
exit $? | |
#endif | |
#include <stdio.h> | |
/* | |
Output: | |
1308467656 | |
32631 | |
0 | |
0 | |
*/ | |
int main() { | |
int i = 4; | |
int tab[i]; | |
for(;i; i--) { | |
printf("%d\n", tab[i] ); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment