I want to know how and when can I use the exit() function like the program in my book:
exit()
#include void main() { int goals;
You must add a line with #include to include that header file and exit must return a value so assign some integer in exit(any_integer).
#include
exit
exit(any_integer)