#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings
Why is it that not all header files are declared in every C program?
Difference between linking and loading?
Differentiate between null and void pointers.
What does a run-time "null pointer assignment" error mean?
what are non standard function in c
Suggesting that there can be 62 seconds in a minute?
How do you list files in a directory?
What is declaration and definition in c?
How to implement variable argument functions ?
How can I sort more data than will fit in memory?
What is the newline escape sequence?