0
why we sometimes write void instead of int?
5 Answers
+ 7
Why?
I mean, do we?
How would that look:
int void() {
.....
}
?
+ 4
Do not forget to use a search engine before asking questions.
https://www.sololearn.com/Discuss/583759/?ref=app
+ 1
Use void for functions that don't have any return type like printing a text out on z screen. Some weird compilers use it *cough*turbo*cough*
But the most common types are int. We use int for a function that has a return type. most compilers use int in there main function.