0

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

it's in C language what is the output of above code please explain.

25th Dec 2016, 7:48 AM
Arpitha G R
Arpitha G R - avatar
1 Resposta
0
00000 for each time the loop will run.. x is reinitialized to 0.. so it will print 0
25th Dec 2016, 8:52 AM
Ayush Walekar
Ayush Walekar - avatar