Vidyalelo
Computer Science · Q268

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 268

Q268

Which of the following is false?

A.
A void function's header begins with the keyword void
B.
A value-returning function's header begins with a data type, which represents the type of data the function will return
C.
Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement
D.
Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement
Answer
E.
Both void and value-returning functions can receive arguments

Answer: Option D

Solution

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