+ 1
Why is it important to include return 0? What happens for other values other than 0?
6 ответов
+ 2
it must return something,so since 0 is nothing it's practically like void , but if you do want it to return something you can make it return the result to the main operation (assuming you have something in the main like "addNumbers (x,y)" then in addNumbers() you can do the math than it will return x+y) If you didn't got it just continue the tutorials and you will see later what I'm talking about
+ 1
no other values do not process errors it is just a convention to return 0 because 0 is nothing in cpp so if there are not any errors u get nothing
+ 1
I'm pretty sure it can also return a NULL value
0
I think values other than zero would return an error.
0
there two of them "0" and "1". "0" will take it to the into main and 1 is abnormal
0
no.... I just tested they don't give you an error