+ 9

What is the difference between void and int ?

23rd Nov 2018, 11:45 AM
RENUKA DEVI NIMMAKAYALA
5 Respostas
+ 14
Void has no return type Int .....return type is necessary
17th Dec 2018, 11:17 AM
Subhash
Subhash - avatar
+ 11
void represents absence of data. int represents an integer element.
23rd Nov 2018, 11:52 AM
Anya
Anya - avatar
+ 2
Void infers that program doesnt return any value. Int refers to return datatype to be an integer value
17th Dec 2018, 11:39 AM
Kondeti Sowjanya
Kondeti Sowjanya - avatar
+ 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.
12th Jan 2019, 12:05 PM
Saurabh Sharma
Saurabh Sharma - avatar