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


A function that returns no values to the program that calls it is _____

[A]. not allowed in C++
[B]. type void
[C]. type empty
[D]. type barren

Answer: Option B


No answer description available for this question.

Mansi said: (Jul 6, 2011)  
Void means not returning any value

Majid Iqbal said: (Apr 19, 2012)  
(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: (Nov 9, 2013)  
If we are not specifying any return type it will take type int automatically.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.