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

All QuestionsCategory: C LanguageFind output of this for loop in c code and explain step by step?
Chetan Shidling Staff asked 5 years ago

 

Code:

#include<stdio.h>

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

 

Can anyone explain?