Use of exit() function

后端 未结 13 1411
离开以前
离开以前 2020-11-30 23:34

I want to know how and when can I use the exit() function like the program in my book:

#include

void main()
{
    int goals;
            


        
13条回答
  •  萌比男神i
    2020-11-30 23:57

    Write header file #include and replace exit(); with exit(0);. This will definitely work in Turbo C; for other compilers I don't know.

提交回复
热议问题