Skip to content

Instantly share code, notes, and snippets.

@varavut
Created July 25, 2015 08:31
Show Gist options
  • Save varavut/86842711e1839c15b56e to your computer and use it in GitHub Desktop.
Save varavut/86842711e1839c15b56e 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 = 9; i >= -1; 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