+ 2

How return statement works?

In c, what happen if the return statement followed by number which is other than 0 when main function calls?

29th Apr 2019, 1:44 PM
Bharath Waj
Bharath Waj - avatar
3 Answers
+ 10
In C programming, return 0 statement tell the called function that the called function have returned a success status. Any other value, positive, negative, notifies some sort of failure & requires Immediate attention of the programmer. Generally 1 value specify a failure return condition from a function. ------------------------------------------------- Hope you got the answer
29th Apr 2019, 3:17 PM
Mohd Abdul Sameer
Mohd Abdul Sameer - avatar
0
Probably nothing...
29th Apr 2019, 2:08 PM
ֆɦɨʀօʍɨ
ֆɦɨʀօʍɨ - avatar