What's the additional header file that should be added to use the exit (); in C language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

What's the additional header file that should be added to use the exit (); in C language?

25th Jul 2019, 12:19 PM
Rajnish Kush
Rajnish Kush - avatar
6 Answers
+ 8
stdlib.h
25th Jul 2019, 12:21 PM
Sonic
Sonic - avatar
+ 8
Sorry I was not here and when i came was lost in challenges. Sonic done the job 👍
25th Jul 2019, 12:38 PM
JOY
JOY - avatar
+ 1
#include <stdlib.h>
25th Jul 2019, 4:50 PM
Paolo De Nictolis
Paolo De Nictolis - avatar
+ 1
If you are using linux then type in your Terminal: man function_name For example: man exit There are some manuals where you need to provide a digit too, which is for page types. For example: man 2 function_name
26th Jul 2019, 3:36 AM
Michael Buzgaru
Michael Buzgaru - avatar
+ 1
On the top of the program write #include<stdlib.h> that will do.
26th Jul 2019, 6:39 AM
Khuzaima A.
Khuzaima A. - avatar
0
stdlib.h
26th Jul 2019, 6:17 PM
Manoj
Manoj - avatar