[ create a new paste ] login | about

Link: http://codepad.org/wSFZZZ8t    [ raw code | output | fork ]

C, pasted on Nov 12:
1
2
3
4
5
6
7
8
#include <stdio.h>
int main(){
 for(int i=0; i < 10; i++){
        printf("%d", i);
   }

return 0;
}


Output:
1
2
In function 'main':
Line 3: error: 'for' loop initial declaration used outside C99 mode


Create a new paste based on this one


Comments: