0

some1 pls explain functions ( void and int) properly and slowly.

10th Jul 2016, 4:51 PM
Sarthak Saxena
Sarthak Saxena - avatar
3 Respuestas
+ 4
void are those functions that do not give any output whereas int function gives an integer as an output
10th Jul 2016, 5:04 PM
Abbas Tailor
+ 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
12th Jul 2016, 9:46 AM
Dominik Kulik
Dominik Kulik - avatar
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.
17th Jul 2016, 4:26 AM
Pravin Sonar
Pravin Sonar - avatar