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;
Try using exit(0); instead. The exit function expects an integer parameter. And don't forget to #include .
exit(0);
#include