Computer Science, asked by dhanukotanaveenkumar, 4 months ago

difference between intmain() vs voidmain() in coding​

Answers

Answered by heyysaurabh
1

Answer:

int main in C++ is used to declare a returning type main function that means it returns some value at the end of execution of main whereas void main is a non returning type main function which doesn't return any value to the user.

Also the returning value should be an int value for int main whereas for void main it is not the case

Similar questions