#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
Is flag a keyword in c?
Explain what are multibyte characters?
How do you do dynamic memory allocation in C applications?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Can you assign a different address to an array tag?
What is the use of #include in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is hashing in c language?
Without Computer networks, Computers will be half the use. Comment.
Subtract Two Number Without Using Subtraction Operator
What is ctrl c called?
How can I remove the trailing spaces from a string?
Is a house a shell structure?
What is non linear data structure in c?