0

Terminate

what is meaning of return 0 terminate c++

24th Nov 2017, 8:00 AM
Aryan Jaiswal
Aryan Jaiswal - avatar
2 ответов
- 1
all funcitions return something . int main is the main function which every single program in c++ has , it should not return anything so you write return0.
24th Nov 2017, 9:09 AM
Faris81
Faris81 - avatar
- 1
Every function returns something, main() is no exception, it returns 0 For normal execution of a c++ program we use, int main(){ . . . return 0; } void main(){ . . . // nothing }
24th Nov 2017, 11:56 AM
#RahulVerma
#RahulVerma - avatar