+ 1

What is the meaning of void? Where and when we will use void in #c?

meaning of void

4th Apr 2017, 3:46 PM
Haziq Zabridin
Haziq Zabridin - avatar
3 Answers
4th Apr 2017, 4:46 PM
Illusive Man
Illusive Man - avatar
+ 3
use void as the return type for methods that do not return anything
4th Apr 2017, 3:49 PM
Edward
0
Just easily memorize as void won't return any values back to you. For e.g. You declare a method with void, you won't get back any variables.
4th Apr 2017, 8:26 PM
Yhal Htet Aung
Yhal Htet Aung - avatar