#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 |
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Who invented bcpl language?
Tell us bitwise shift operators?
Which is the best website to learn c programming?
What is the output of the program given below #include<stdio.h> main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
21 Answers ADITI, Student, TCS,
How to explain the final year project as a fresher please answer with sample project
How many types of arrays are there in c?
What is external and internal variables What is dynamic memory allocation what is storage classes in C
write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
Is c language still used?
What is register variable in c language?
Explain the difference between malloc() and calloc() function?