a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6
Answer Posted / deepu_ashu
as the value of "a" increases after printing the value.
so it will print the value
0
1
2
3
4
but after printing the value 4 ,it becomes 5 for the next iteration.
so the condition becomes false.
the loop will not execute any more.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
Is c is a low level language?
Explain Function Pointer?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
is it possible to create your own header files?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What are type modifiers in c?
What does == mean in texting?
can we have joblib in a proc ?
find out largest elemant of diagonalmatrix
show how link list can be used to repersent the following polynomial i) 5x+2
What is the difference between single charater constant and string constant?
What is the scope of local variable in c?
Can we declare a function inside a function in c?
What are pointers?