+ 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?

9th Apr 2019, 4:50 PM
Katherine
Katherine - avatar
2 Respuestas
+ 2
May be the function prints sth or it change the property and do not need to return sth
9th Apr 2019, 5:02 PM
Programmer