C Programming MCQ

1:

The following program

main ()
{
  float a = .5, b = .7;
  if (b < .7)

{
     if (a < .5)

          printf("TELO");
     else
          printf("LTTE");

}
   else printf("JKLF");
}


outputs

A.

LTTE

B.

TELO

C.

JKLF

D.

PLO

 

Answer : A

Explanation :

It will print 'LTTE' as a and b are of float type.

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.