0
I don't really understand the use of void statement in c++. Can someone pls explain the meaning of void statement.
C++
5 Respostas
+ 3
I don't no much about C++ but void in Java simply means return nothing. You must add the void keyword when you're defining an impure function or function that doesn't return anything but maybe changes the state of something.
+ 1
void is a function return type and it just means that the function doesn't return a value. Hope this helps
+ 1
The void statement means return nothing