#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
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is pivot in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is difference between main and void main?
What language is lisp written in?
Can we change the value of #define in c?
Are the variables argc and argv are local to main?
How the c program is executed?
Can we replace the struct function in tree syntax with a union?
how to capitalise first letter of each word in a given string?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is the difference between malloc() and calloc() function in c language?
what are the different storage classes in c?
Tell me what is the purpose of 'register' keyword in c language?
Can you write the algorithm for Queue?