0
What is void?
4 Answers
+ 4
Void is a type function, it specifates that function doesnât return any value.
+ 4
Void is the return type. When a function/method is defined with void it means it doesn't return any value to the calling function.
0
"Void function does not return any value "- What does this actually mean?
0
It means that if you have a function
void f(....) {...}
then when doing
x = f(...);
x gets the value of Null. Not void, but Null, absence of data.