//case 1:
main()
{
int i=1;
while(1)
{ // your text
printf("%d n",i);
++i; // your text
}
//case 2:
main()
{
int i=1;
while(i)
{
printf("%d n",i);
++i;
}
Q2 I want to know how actually the while looping run for example if i have given some value to i let say 1,then will it go through the code and save the incremented result 2 as i and again it will run with i=2 as input or if i am guessing wrong then how actually while looping run?
I am beginner at programming languages please help!
Arpit Upadhyay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
9