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
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Why cant I open a file by its explicit path?
What is the difference between a function and a method in c?
What does the && operator do in a program code?
What is static identifier?
What is calloc in c?
Explain how do you generate random numbers in c?
Why is #define used?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I do graphics in c?
What are the disadvantages of a shell structure?
What is the difference between variable declaration and variable definition in c?
What does stand for?