0
Can someone please give an example using void??
5 Answers
+ 6
Void means nothing is returned back to were you called the function in your code.
Theres one function that returns something and there one function which is void and returns nothing.
Both types of functions can take in arguments when called but non void function will return a result, a void function returns nothing.
You should create 2 functions and test them by calling each in your code.
+ 1
Void defines a function which doesn't return a value.
0
ok so does void display any output?(cpp)