[C Language] return vs exit

Q : Does exit( ) end the program faster than just returning from main( )?

A : No, But if you call exit(), you don't need to structure your code to get back to the main( ) function. As soon as you call exit( ), your program is dead.

댓글

가장 많이 본 글