UGC-NET Jan 2017 · Functions of a Single Variable

MCQ · 2 marks · Problem EM-LIMC-0026

Which of the following cannot be passed to a function in C++?
  1. A
    Constant
  2. B
    Structure
  3. C
    Array
  4. D
    Header file

Solve it on GATE DA practice →More Differential Calculus problems

Show the worked solutionArguments of a C++ function are values (or references/pointers to objects): constants, structures and arrays (as pointers or references) can all be passed. A header file is source text pulled in by the preprocessor with \#include; it is not a value and cannot be passed to a function.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com