Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Output : enum per {married, unmarried, divorced, spinster } per.married = 10; Console.WriteLine(per.unmarried); | |
A. | The program will report an error since an element cannot be assigned a value outside the declaration. [Correct Answer] |
B. | The program will output a value . [Wrong Answer] |
C. | The program will output a value . [Wrong Answer] |
D. | The elements must be declared . [Wrong Answer] |