0
What is a difference between void and int fucntion on c++
What is a difference between void and int function in code, can me get example !
4 Answers
+ 3
A void function doesn't return any value. An int function, returns an integer value unlike void. Also, float ones return float value, char one return char... etc.
Happy coding!
+ 1
mesarthim Thank you so much
0
The main difference between these two function void and int function is that both return type is a quite different means return type for void() is Nothing and return type for int() is an integer value
0
Thank you for Answer.