#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 |
Not all reserved words are written in lowercase. TRUE or FALSE?
What is static and volatile in c?
How would you print out the data in a binary tree, level by level, starting at the top?
main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) }
5 Answers Amazon, HCL, Thought Works,
How can I access memory located at a certain address?
Explain what are the __date__ and __time__ preprocessor commands?
Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
What is the difference between ++a and a++?
Can we access array using pointer in c language?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Why static is used in c?