Vidyalelo
Computer Science · Q486

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 486

Q486

Which of the following is false?

A.
You enclose a function's statements in a set of braces
B.
The function header is considered a C++ statement, so it must end in a semicolon
Answer
C.
The keyword void tells the C++ compiler that the function does not return a value
D.
A function can receive information that you send (pass) to it
E.
An empty set of parentheses after the function's name in the function header tells you that the function does not receive any information

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board