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

Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 17)
17.
A function that returns no values to the program that calls it is _____
not allowed in C++
type void
type empty
type barren
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Mansi said:   1 decade ago
Void means not returning any value

MAJID IQBAL said:   1 decade ago
void:
(1) void is a key word in C/C++.
(2) The function returning no value should have a return type "void" (indicating no return value).
(3) C++ provides three built_in data types which are integer, void and float.

Abhishek Srivastava said:   1 decade ago
If we are not specifying any return type it will take type int automatically.

Post your comments here:

Your comments will be displayed after verification.