Discuss about 'exit' library function
Exit :- exit () is a stander library function, which terminates program execution when it is called.
The general syntax of the exit() function is :
void exit (int return_code);
The value of return_code is returned to the calling process, so the success or failure of the program can be tested by another program that uses this one as a sub-process. A return value of 0 signals that all is well, non-zero values usually signal abnormal situations.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment