+ 1
Why do void functions exist?
What would be an example of a void function in practice? Why would you want a function without some sort of output?
2 ответов
+ 2
May be the function prints sth
or it change the property and do not need to return sth
What would be an example of a void function in practice? Why would you want a function without some sort of output?