+ 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.

13th Jun 2019, 3:46 PM
AMB
AMB - avatar
5 ответов
+ 2
Okay, cool, but if you got a problem, please specify it, also, a code would be helpful
13th Jun 2019, 3:47 PM
Airree
Airree - avatar
+ 2
I talking to return value
13th Jun 2019, 3:52 PM
AMB
AMB - avatar
+ 1
are you talking about the return value or what???
13th Jun 2019, 3:50 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
It doesn't matter what the return value is, because it won't be used. But, it definitely should be an integer
13th Jun 2019, 3:54 PM
Airree
Airree - avatar
+ 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.
13th Jun 2019, 4:23 PM
Vlad Serbu
Vlad Serbu - avatar