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
Can two or more operators such as and be combined in a single line of program code?
what is the format specifier for printing a pointer value?
Write a program that accept anumber in words
What is the use of ?: Operator?
What is the purpose of clrscr () printf () and getch ()?
write a program to print largest number of each row of a 2D array
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Can we assign integer value to char in c?
How can a program be made to print the name of a source file where an error occurs?
Why is void main used?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is volatile variable in c with example?
What is scope rule in c?
What is the auto keyword good for?
What are the types of c language?