#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 / jitendra mahajan
2
5
| Is This Answer Correct ? | 75 Yes | 6 No |
Post New Answer View All Answers
Linked lists -- can you tell me how to check whether a linked list is circular?
What is the difference between struct and union in C?
Wt are the Buses in C Language
Why we use int main and void main?
Which is better between malloc and calloc?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Can you write a programmer for FACTORIAL using recursion?
Explain the use of 'auto' keyword in c programming?
write an algorithm to display a square matrix.
How do I use void main?
What is a shell structure examples?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Is c is a procedural language?
How can I swap two values without using a temporary?
What is variable declaration and definition in c?