Question 40Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

Which of the following cannot be passed to a function in C++?

  1. AConstant
  2. BStructure
  3. CArray
  4. DHeader file
Show answerHide answer

Correct answer: (D) Header file

Explanation

A header file cannot be passed to a function in C++, while a constant, a structure and an array can be passed to a function.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 40 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). 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.