Question 44Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

Which of the following is a correct way of declaring an array of 15 integer elements in C?

  1. Aarray int[15];
  2. Barray int(15);
  3. Cint array[15];
  4. Dint array(15);
Show answerHide answer

Correct answer: (C) int array[15];

Explanation

In C an array is declared as type name[size], so int array[15]; declares 15 integers. The other forms are not valid C syntax.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

This is question 44 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM). 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.