C Programming MCQ

1:

 Which of the following is/are syntactically correct?

A.

for ( ) ;

B.

f or (;) ;

C.

for ( , );

D.

for ( ; ; ) ;

 

Answer : D

Explanation :

Alok Gupta said: (7:00pm on Friday 26th April 2013)
I feel in 'D' option the semi-colon should not be there at the end of parenthesis. It should be like, for (;;) as, if 'D' option is correct then what is wrong with the 'A' and 'C' option.

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.