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 binary tree in c?
What is main return c?
Write a factorial program using C.
Why do some versions of toupper act strangely if given an upper-case letter?
What are file streams?
what are enumerations in C
What is wild pointer in c with example?
Can we access the array using a pointer in c language?
Is there any demerits of using pointer?
What is logical error?
Can you assign a different address to an array tag?
Which function in C can be used to append a string to another string?
What are the advantages of union?
What are the uses of a pointer?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.