In my experience (next to none), you use void in cases like a menu function. You output to the screen a menu and it doesn't need to send anything back to the main function.
There's other similar cases but generally what I've seen is that it's just when you hav a function that doesn't need to send anything back to the main.
0
09 Jun 2016 23:25
u/GenericFunnyName
in v/programming
In my experience (next to none), you use void in cases like a menu function. You output to the screen a menu and it doesn't need to send anything back to the main function.
There's other similar cases but generally what I've seen is that it's just when you hav a function that doesn't need to send anything back to the main.