+ 2
What is difference of void main() and int main()
Void main() and int main()both are use in c and c++
2 Answers
+ 5
int main() //returns an int *why return 0 is used
void main() //returns nothing. it may do something else though like print text
0
Void main() means function don't return any value after execution . And int main() means function return something or 0