Skip to content

Instantly share code, notes, and snippets.

@fclairamb
Last active August 29, 2015 14:11
variable size object
#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