#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}
Answer Posted / sourav basu
1 1
print statement is printing 'j', not 'i'. and the for loop works on the basis of value of 'i'..
tested and verified answer on gcc compiler
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
How can you avoid including a header more than once?
What are different types of pointers?
What is the use of bit field?
What does stand for?
What are identifiers and keywords in c?
Is boolean a datatype in c?
When should the volatile modifier be used?
What is a pointer variable in c language?
How can I split up a string into whitespace-separated fields?
Write a program to reverse a given number in c?
Write a progarm to find the length of string using switch case?
#include
What is a void pointer? When is a void pointer used?
Do variables need to be initialized?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code