0

Can smone explain the void function and the return pt

6th Mar 2018, 6:51 PM
ADAMS MOHAMMED
12 Respuestas
+ 1
main or even any other user defined function
6th Mar 2018, 7:17 PM
Manorama
Manorama - avatar
+ 1
If function does not return any value ,then it is declared as void. https://code.sololearn.com/cZEErc1Zj4vO/?ref=app
6th Mar 2018, 7:09 PM
Manorama
Manorama - avatar
+ 1
If function is not passing any value to outside , means to other functions
6th Mar 2018, 7:14 PM
Manorama
Manorama - avatar
+ 1
in void function, value is accessible to only within that function
6th Mar 2018, 7:18 PM
Manorama
Manorama - avatar
+ 1
got it
6th Mar 2018, 7:20 PM
ADAMS MOHAMMED
+ 1
the answer will be printed from function itself.print sum of num from void function.it will not print from main function.
6th Mar 2018, 7:20 PM
Manorama
Manorama - avatar
+ 1
can write a sample prog for me to try
6th Mar 2018, 7:23 PM
ADAMS MOHAMMED
6th Mar 2018, 7:24 PM
Manorama
Manorama - avatar
0
"does not return any value" dats wer am confused
6th Mar 2018, 7:11 PM
ADAMS MOHAMMED
0
is it dat if u input a void func to cal sum of num, the answer wont display on the screen or?
6th Mar 2018, 7:13 PM
ADAMS MOHAMMED
0
okkk, so other func not the main func right
6th Mar 2018, 7:16 PM
ADAMS MOHAMMED
0
thanks
6th Mar 2018, 7:18 PM
ADAMS MOHAMMED