0

What is void?

5th Apr 2018, 3:40 PM
Rajat C. Ghatode
Rajat C. Ghatode - avatar
4 Answers
+ 4
Void is a type function, it specifates that function doesn’t return any value.
5th Apr 2018, 3:53 PM
Chalza
Chalza - avatar
+ 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.
5th Apr 2018, 4:16 PM
Rusty.Metal
0
"Void function does not return any value "- What does this actually mean?
5th Apr 2018, 5:07 PM
Rajat C. Ghatode
Rajat C. Ghatode - avatar
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.
5th Apr 2018, 5:10 PM
Bebida Roja
Bebida Roja - avatar