What will be the output of the following C code?
Find the output of this simple C program using a for loop and Printf. Understand how the loop works and what gets printed. Click for the answer!
#include
main( )
{
int i;
for ( i=0; i<5; i++ )
{
int i = 10;
printf("%d", i);
i++;
}
return 0;
}
1
10 11 12 13 14
2
10 10 10 10 10
3
0 1 2 3 4
4
Compilation error