Meaning of Exit Code 11 in C?

后端 未结 3 2278
不思量自难忘°
不思量自难忘° 2021-02-19 01:41

What\'s the general meaning of an exit code 11 in C? I\'ve looked around and can not find a definitive answer so I thought I would ask here. It comes when i try to add an elemen

3条回答
  •  长发绾君心
    2021-02-19 02:08

    There is no standard defined which exit codes an application has to set in certain situations. It is totally up to the programmer which exit codes represent which error or even success !

    Sometimes programmers decide that any value different from zero signals an error, and sometimes this value equals the operating systems error codes.

    On Windows exit code 11 might be used because of problems with a file. If you want the description of this error code (which is specific to Windows and not necessarily your application) run net helpmsg 11.

提交回复
热议问题