+ 1
What is the use of return 0 in C++ main?
Example. #include <iostream> Using namespace std; int main(){ cout << "The use of return below" << endl; return 0; }
3 ответов
+ 8
Read Answers of these post you can find answer easily
https://www.sololearn.com/discuss/58866/?ref=app
https://www.sololearn.com/discuss/315777/?ref=app
https://www.sololearn.com/discuss/97686/?ref=app
https://www.sololearn.com/discuss/53497/?ref=app
https://www.sololearn.com/discuss/108138/?ref=app
https://www.sololearn.com/discuss/838600/?ref=app
0
because you define the main function as int so you must return an integer.