Find output of this for loop in c code and explain step by step?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: C LanguageFind output of this for loop in c code and explain step by step?
Chetan Shidling Staff asked 6 years ago

 

Code:

#include<stdio.h>

int main()
{
int i;
for(i=1;i<=10;i++)
{
printf(“%dn”,i);
}
return 0;
}

 

Can anyone explain?