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
What is the code for 3 questions and answer check in VisualBasic.Net?
Is calloc better than malloc?
What are two dimensional arrays alternatively called as?
Define recursion in c.
Why is a semicolon (;) put at the end of every program statement?
explain what are actual arguments?
What is memory leak in c?
What does c mean?
Can we change the value of static variable in c?
develop algorithms to add polynomials (i) in one variable
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is signed and unsigned?
What is the return type of sizeof?
How can I find out how much free space is available on disk?
What is c token?