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 _____
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.
(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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers