C Programming MCQ

1:

The body of the following for loop

 for( putchar( 'a' ); putchar (0); putchar (' c ') ) putchar ( 'b') ;

will be executed

A.

0 times

B.

1 times

C.

infinitely many times

D.

will not be executed because of syntax error

 

Answer : A

Explanation :

The condition is putchar (0) . This returns a value 0 which is a false condition. So, the loop will not be executed even once. 

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.