#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 are different storage class specifiers in c?
Give the rules for variable declaration?
Give differences between - new and malloc() , delete and free() ?
Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Describe newline escape sequence with a sample program?
How to declare pointer variables?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
when user give a number it multiply with 9 without useing '+' and '*' oprator
who is the founder of c
19 Answers College School Exams Tests, HP,
What is the best style for code layout in c?
difference between function & structure
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); }
11 Answers CISOC, CitiGroup, College School Exams Tests,