Why do void functions exist? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
+ 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