What does main() return?
Every function starts with the main() function, Without the main function the program is not executed and the compiler gives an error that is you are not declaring the main.
The main function depends upon the data type which you declare with the main function.
If you declare the void main() function it returns nothing, But if you declare the int main()
it returns an integer value. Everyone can solve this problem with the help of writing any code in the code editor and use the void main and int main function where the main function declared.
Comments
Post a Comment