Question 135

In C++, members of a struct are by default:

  1. Aprotected
  2. Bstatic
  3. Cpublic
  4. Dprivate
Show answerHide answer

Correct answer: (C) public

Explanation

struct defaults to public; class to private.

From DSSSB TGT Computer Science Full Mock Test 3

This is question 135 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.