Note: Exit () is exited, the parameters passed in is the program exit status code, 0 for normal exit, the other means the abnormal exit, generally used-1 or 1, standard C has exit_success and exit_failure two macros, with exit (exit_success) ,
Differences between exit () and _ exit ()
Linux source code
# DEFINE _ nr_exit 1
# DEFINE _ nR _ exit _ nr_exit/* from the File Include/asm-i386/unistd. H */"_ NR _" is the prefix for each system call in the Linux source code. Note that there are
Before learning about the process control knowledge, we need to understand a single process of the operating environment.In this chapter we will look at the following:
How the main function is called when the program is running;
How
"Summary"
This
article from the Code form, common way, related concepts, call relations and comparative analysis, the 5 dimensions of the exit and return in C + + the same point and difference.
"Common form"
Exit (0): Run
Analysis of C ++ exit and return and exitreturn【Abstract]
This article analyzes the similarities and differences between exit and return in C ++ from the code form, common methods, related concepts, call relationships, and comparison.
[Common
"Summary"
This article is from the code form. Frequently used methods, related concepts, call relationships and comparative analysis, these 5 dimensions analyze the same points and differences between exit and return in C + +.
"Common
Analysis of C ++ exit and return【Abstract]
This article analyzes the similarities and differences between exit and return in C ++ from the code form, common methods, related concepts, call relationships, and comparison.
[Common form]
Exit (0
The process has the following five normal termination methods:
(1) execute the return statement in the main function. This is equivalent to calling exit.
(2) Call the exit function. This function is defined by iso c. Its operations include calling
Objective
Programmer's programming skills will gradually increase with the accumulation of experience. I think the programming ability can be divided into some levels.
The following is a discussion of the programming competency hierarchy model
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.