C++ Programming :: OOPS Concepts - Discussion
Home > C++ Programming > OOPS Concepts > MCQs Questions Discussion
3 / 14
Choose the correct option.
Which statement is wrong in C++?
AA pointer to a constant can be used to view but not modify its target
BA canst pointer can't be modified but its target can
CThe inline specifier instructs the compiler to replace function calls with the code of the function body
Dconstant pointers to constants can be used to view but not modify its target
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
This statement is not always true.The inline specifier usually instructs the compiler to substitue the inline function code at the place of a inline function call. Inlining is only a request to the compiler but not a command. Compiler may not perform inlining if the function contains a loop, goto, switch statement etc.
Read Full Answer
Report Error
Please Login First Click Here