Question 37Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

In the context of array types, what is the key difference between int *arr[5] and int (*arr)

In the context of array types, what is the key difference between int *arr[5] and int (*arr) [5]?
  1. ABoth are syntactically incorrect
  2. BFirst is a pointer to an array, second is an array of pointers
  3. CThey are identical in their functionality
  4. DFirst is an array of pointers to integers, second is a pointer to an array of integers
Show answerHide answer

Correct answer: (D) First is an array of pointers to integers, second is a pointer to an array of integers

Explanation

[] binds tighter than *, so int *arr[5] is an array of 5 pointers to int. The parentheses in int (*arr)[5] make arr a single pointer to an array of 5 ints.

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

This is question 37 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1: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.