0

What is the meaning of void sum void? And why is void used 2 times?

its is in the chapter functions. and plz explain me with an example. plz

9th Nov 2016, 2:22 PM
Gauri
2 Respuestas
+ 4
void sum(void); The first void tells that the function sum doesn't return anything. The second void means that the function sum doesn't accept anything as a parameter. It is equivalent to writing void sum();
9th Nov 2016, 2:33 PM
Rahul Chittimalla
Rahul Chittimalla - avatar
+ 1
ookay. Thaaaaank you very much.
9th Nov 2016, 3:00 PM
Gauri