OOPS
August 29, 2024OOPS
August 29, 2024OOPS
Question 45
|
Which of the following cannot be passed to a function in C++ ?
Constant
|
|
Structure
|
|
Array
|
|
Header file
|
Question 45 Explanation:
→ Header files contain definitions of Functions and Variables, which is imported or used into any C++ program by using the pre-processor #include statement. Header file have an extension “.h” which contains C++ function declaration and macro definition.
→ Header file is a library file, we can not passed to a function in C++.
→ We can pass constant,Structure and Array
→ Header file is a library file, we can not passed to a function in C++.
→ We can pass constant,Structure and Array
Correct Answer: D
Question 45 Explanation:
→ Header files contain definitions of Functions and Variables, which is imported or used into any C++ program by using the pre-processor #include statement. Header file have an extension “.h” which contains C++ function declaration and macro definition.
→ Header file is a library file, we can not passed to a function in C++.
→ We can pass constant,Structure and Array
→ Header file is a library file, we can not passed to a function in C++.
→ We can pass constant,Structure and Array