

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following is the correct way to define a variable of the type struct Emp declared below? struct Emp { private String name; private int age; private Single sal; } Emp e(); e = new Emp(); Emp e = new Emp; Emp e; e = new Emp; Emp e = new Emp(); Emp e; |
A. | 1, 3 |
B. | 2, 5 |
C. | 4, 5 |
D. | 1, 2, 4 |
Answer» D. 1, 2, 4 | |