Created
April 9, 2013 10:28
-
-
Save alastair/5344693 to your computer and use it in GitHub Desktop.
With some compilers, this will run forever. Why?
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
int main() { | |
int array[4]; | |
int i; | |
for (i = 0; i < 10; i++) { | |
array[i] = 0; | |
printf("%d\n", array[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment