What would happen if I write return 1 iin C programming language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What would happen if I write return 1 iin C programming language?

22nd Jul 2021, 5:12 AM
Learner
Learner - avatar
1 Answer
+ 5
Nothing. The return value is used by proces who started the program, like the command prompt. You can use it in a .bat script. 0 stands for succes, anything else for error.
22nd Jul 2021, 5:23 AM
sneeze
sneeze - avatar