InterviewSolution
Saved Bookmarks
| 1. |
Which is the correct syntax for declaring static data member?(a) static mamberName dataType;(b) dataType static memberName;(c) memberName static dataType;(d) static dataType memberName; |
|
Answer» The correct choice is (d) static dataType memberName; For explanation: The syntax must firstly be mentioned with the keyword static. Then the data type of the member followed by the member name should be given. This is general form of declaring static data members. |
|