Classical

C Programming MCQ - Constant Variables & Data Types

56:  

The statement 

  printf( " % f ", ( float )9/5) ;

prints

A.

1.8

B.

1.0

C.

2.0

D.

none of these

 
 

Option: A

Explanation :


57:  

 The declaration

enum cities{ bethlehem, jericho, nazareth = 1, jerusalem }

assigns the value 1 to

A.

bethlehem

B.

nazareth

C.

bethIehem and nazareth

D.

jericho and nazareth

 
 

Option: D

Explanation :

The listed places will be assigned the values 0, 1, 1, 2 respectively.




Suggest an improvement