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
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
what will be maximum number of comparisons when number of elements are given?
How can I make sure that my program is the only one accessing a file?
What is the use of printf() and scanf() functions?
What are the different categories of functions in c?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Can we initialize extern variable in c?
Why c is a mother language?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are loops c?
Is fortran still used today?
Where we use clrscr in c?
What are the header files used in c language?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Are the variables argc and argv are local to main?