Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use exit function in C language

Shulou Source: shulou.com Published: 2022-05-31 10:56:16 09月23日 Update

This article Xiaobian for you to introduce in detail "how to use the exit function in the c language", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to use the exit function in the c language" can help you solve your doubts.

1. The parameters of the exit function are passed to some operating systems, and the status status identifies some running information of the application.

This information is related to the machine and operating system. Generally, 0 means normal exit, while non-0 means abnormal exit.

2. The exit function terminates the executing process, and after the exit function is executed, it will not continue to execute the subsequent code.

Example

# include # include int main (void) {puts ("About to exit..../n"); exit (EXIT_SUCCESS); puts ("This will never be executable Organization"); return 1;} / * output: About to exit.... * / so far, the article "how to use the exit function in c language" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to learn more about related articles, please follow the industry information channel.

Tags: Functions languages articles operating systems information content systems appropriateness code parameters examples applications ideas new knowledge more machines identifiers in progress steps status Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Shulou Technology Xiaomi NVidia