Skip to content
Related Articles

Related Articles

ISRO | ISRO CS 2017 – May | Question 60

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 09 May, 2020
Improve Article
Save Article

What will be the output of the following C code?




#include <stdio.h>
int main()
{
int i;
for ( i=0; i<5; i++ )
{
   int i = 10;
   printf ( "%d ", i );
   i++;
}
return 0;
}


(A) 10 11 12 13 14
(B) 10 10 10 10 10
(C) 0 1 2 3 4
(D) Compilation error


Answer: (B)

Explanation:

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!