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


Please Help Members By Posting Answers For Below Questions

Can two or more operators such as and be combined in a single line of program code?

816


what is the format specifier for printing a pointer value?

621


Write a program that accept anumber in words

1260


What is the use of ?: Operator?

673


What is the purpose of clrscr () printf () and getch ()?

607






write a program to print largest number of each row of a 2D array

1882


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

771


Can we assign integer value to char in c?

625


How can a program be made to print the name of a source file where an error occurs?

743


Why is void main used?

628


What will be the outcome of the following conditional statement if the value of variable s is 10?

779


What is volatile variable in c with example?

594


What is scope rule in c?

613


What is the auto keyword good for?

636


What are the types of c language?

566