C Programming MCQ

1:

 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

 

Answer : D

Explanation :

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

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.