0

When do we use return -1; in C programming ?

25th Jul 2022, 2:01 PM
Vishwanath Dhansure
Vishwanath Dhansure - avatar
3 Réponses
+ 2
Are you referring to exit codes or custom functions?
25th Jul 2022, 2:09 PM
Lisa
Lisa - avatar
0
Exit codes
28th Jul 2022, 5:20 PM
Vishwanath Dhansure
Vishwanath Dhansure - avatar
0
-1 is not used as an exit code Exit codes are unsigned integer. Do you have a code example that uses -1?
28th Jul 2022, 5:28 PM
Lisa
Lisa - avatar