+ 2
When I put other number than 0 the program successful but in the course they say that the program can't matter if you put other0
I think to return value.
5 Respostas
+ 2
Okay, cool, but if you got a problem, please specify it, also, a code would be helpful
+ 2
I talking to return value
+ 1
are you talking about the return value or what???
+ 1
It doesn't matter what the return value is, because it won't be used. But, it definitely should be an integer
+ 1
On Unix systems (where C comes from), the return value is used extensively.
For example, if a script uses your Program A to extract some data, and program B to modify it, if the program A returns a non-zero value, the script will not run program B, because there is no data for it to use.
On Windows, the return value is generally ignored.