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 / vikram
the output will be:
0
1
2
3
4
hence the loop will be executed 5 times,hence the answer is b
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
What is sizeof int?
What is the scope of global variable in c?
What is the argument of a function in c?
Explain what is a pragma?
What is structure padding and packing in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is time complexity c?
What is function prototype?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
How many keywords (reserve words) are in c?
What is infinite loop?
How do you initialize pointer variables?
Describe newline escape sequence with a sample program?
What is #define used for in c?