What is the difference between exit(0) and exit(1) in C?

前端 未结 11 1856
时光取名叫无心
时光取名叫无心 2020-12-22 17:19

Can anyone tell me? What is the difference between exit(0) and exit(1) in C language?

11条回答
  •  情书的邮戳
    2020-12-22 18:20

    exit(0) means Program(Process) terminate normally successfully..

    exit(1) means program(process) terminate normally unsuccessfully..

    If you want to observe this thing you must know signal handling and process management in Unix ...

    know about sigaction, watipid()..for()...such....API...........

提交回复
热议问题