i asked a newbie to write me a program to print from 1 to 100.
He gave me this code
It WORKED..Code:#include <stdio.h> int main() { int i,A[100]; for(i = 1; i <= 100; i++) printf("%d\n",A[100]); }
Ive ran the code on ubuntu and on windows perfectly.
I dont understand why it works.
Can any one help.