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 / ankit rastogi
ans should be (a)infinite
bcoz every time a will be initialize with 0......
and increment values are displayed
a=1
a=2
a=3
a=4...................upto infinity......
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
When should the volatile modifier be used?
In c language can we compile a program without main() function?
Write a program to reverse a linked list in c.
What is meant by realloc()?
Explain what is a static function?
Explain what happens if you free a pointer twice?
Explain the use of fflush() function?
Why do we use main function?
what are the 10 different models of writing an addition program in C language?
Is return a keyword in c?
What are types of preprocessor in c?
Is it possible to pass an entire structure to functions?
What are predefined functions in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
write a program to print data of 5 five students with structures?