+ 2

What is the difference between int main and void main

16th Oct 2017, 4:39 PM
kbharadwajreddy bharat
kbharadwajreddy bharat - avatar
5 Answers
16th Oct 2017, 4:45 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 7
no problem bro or sis
16th Oct 2017, 5:12 PM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 6
int-is a data type like float,double,string main-is function it is important because computer check this first and then other things void main -is a function which has no return type
16th Oct 2017, 5:04 PM
Yash🏁🔘
Yash🏁🔘 - avatar
+ 3
Int and void are return type... When we need to return some value we use int.. And when we don't need to return any value we use void. Clear?
16th Oct 2017, 4:55 PM
Shashank Pandey
Shashank Pandey - avatar
0
thanks
16th Oct 2017, 5:07 PM
kbharadwajreddy bharat
kbharadwajreddy bharat - avatar