Discuss about 'exit' library function

No comments

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.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀