0
some1 pls explain functions ( void and int) properly and slowly.
3 Respuestas
+ 4
void are those functions that do not give any output whereas int function gives an integer as an output
+ 1
Int function must always return INTeger, void is using where function has nothing to return. By example, void to write some text on console screen, int function to add a+b that return INT c
0
if function's return type is void then it doesn't return anything but if return type is int then it will return integer value.