0

Why we used return 0 in c we can't use return 1 or return 2 or return 3

C language

2nd Jul 2019, 10:06 AM
Vemana Srinivasulu
2 Answers
+ 1
Main function can returns 0, 1, 2 or any number. The return 0 is here to say : 'Hey, I returned 0, all went good! Your program didn't crash!'.
2nd Jul 2019, 10:11 AM
Théophile
Théophile - avatar
0
I coded return 1 my code is complied and it's showing answer
2nd Jul 2019, 10:13 AM
Vemana Srinivasulu