Home > Back-end >  C/C, the function after the non-normal exit will do (like the exit (1))
C/C, the function after the non-normal exit will do (like the exit (1))

Time:04-10


Is a function to run again this until normal exit?

Or back to front error function, according to normal program execution until the computer after normal exit; Or skip the non-normal exit function (seems unlikely),

From the data structure of the linear table

CodePudding user response:

Function non-normal exit has two kinds, one kind is the exit, the other is a return; Exit exit is abnormal is important (very important), so need to exit the program (exit is exit process); Another kind is less important, then return back;
The first exit system recovery program (all functions, variables such as global variables on the heap space, etc.) of resources; Return is the recovery function of the stack resources system; The scope of these two recycling is not the same;

CodePudding user response:

The
refer to the original poster weixin_56922977 response:
is to run again this function until normal exit?

Or back to front error function, according to normal program execution until the computer after normal exit; Or skip the non-normal exit function (seems unlikely),

From the data structure of the linear table

Emm gave me a whole meng force, didn't quite understand, can you specific?