+ 1

In which situation a void function used?

"Void"

9th Dec 2019, 2:40 PM
Sarvesh Mankar
Sarvesh Mankar - avatar
3 Answers
+ 2
A void function is a function that returns no value. That being said, you could use a void function to call another function that does return an output. For example, void adder(int n, int c){ int d = n + c; print(d); }
9th Dec 2019, 4:14 PM
Joe
Joe - avatar
+ 3
https://www.sololearn.com/learn/C/2929/ There's an example at the end :)
9th Dec 2019, 2:58 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
hello Sarvesh Mankar. Do you understand that a void function does?
9th Dec 2019, 2:42 PM
Manual
Manual - avatar