Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 6 (Q.No. 24)
24.
Which of the following is false?
A void function's header begins with the keyword void
A value-returning function's header begins with a data type, which represents the type of data the function will return
Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement
Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement
Both void and value-returning functions can receive arguments.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Ayesha said:   3 years ago
Answer is D.

void line(char);
int cube(int);
Both void and value-returning functions can receive arguments.

Post your comments here:

Your comments will be displayed after verification.