Home »
MCQs »
C++ MCQs
Can we pass a class into a function as an argument in C++?
181. Can we pass a class into a function as an argument in C++?
- Yes
- No
Answer: B) No
Explanation:
No, we cannot pass a class into a function as an argument, we can pass an object of a class as an argument to the function in C++.