Consider the below given code:
main()
{
int i=0; //line 1
clrscr();
printf(%d,i); i++;
if(i!=10)
main();
getch();
}
The above code snippet will run in an infinite loop.
What resolution shall be applied in order to terminate the loop as well?
Reveal answer
Fill a bubble to check yourself