+ 3
What is the difference of void main in int main in c program.
Void main() and int main()
3 Réponses
+ 5
Void main() indicates that main() will not return any value
Int main() indicates that main() will return an integer value
+ 1
Thanks!
+ 1
Hello,
void, int, double etc, are the datatypes and used as a return type of any function or methods. the main difference between int main() and void main() is the return type. int main() method will return int value while void main() method will return nothing. You can also use the double or float as a return type.