0
Can smone explain the void function and the return pt
12 ответов
+ 1
main or even any other user defined function
+ 1
If function does not return any value ,then it is declared as void.
https://code.sololearn.com/cZEErc1Zj4vO/?ref=app
+ 1
If function is not passing any value to outside , means to other functions
+ 1
in void function, value is accessible to only within that function
+ 1
got it
+ 1
the answer will be printed from function itself.print sum of num from void function.it will not print from main function.
+ 1
can write a sample prog for me to try
0
"does not return any value" dats wer am confused
0
is it dat if u input a void func to cal sum of num, the answer wont display on the screen or?
0
okkk, so other func not the main func right
0
thanks