+ 9
What is the difference between void and int ?
5 Answers
+ 14
Void has no return type
Int .....return type is necessary
+ 11
void represents absence of data.
int represents an integer element.
+ 2
Void infers that program doesnt return any value. Int refers to return datatype to be an integer value
+ 1
void mean they have no return type of function and int function means that function return integer value after execution of the code.
int sum (int a,int b)-->they return integer sum
void sum (int a,int b)-->they only compute not return any thing.