Skip to content

Instantly share code, notes, and snippets.

@varavut
Created July 25, 2015 08:17
Show Gist options
  • Save varavut/486a37c4a4e0c4d2c731 to your computer and use it in GitHub Desktop.
Save varavut/486a37c4a4e0c4d2c731 to your computer and use it in GitHub Desktop.
#include "stdafx.h"
#include <conio.h>
int _tmain(int argc, _TCHAR* argv[])
{
int a[10], i;
for (i = 0; i <= 10; i++) {
printf("before: i = %d\t", i);
a[i] = 0;
printf("after: i = %d, a[%d] = %d\n", i, i, a[i]);
}
_getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment