Process.h or cstdlib for exit() ?? | Sololearn: Learn to code for FREE!
+ 3

Process.h or cstdlib for exit() ??

In my C++ text book it's written that inorder to use exit() function we need to declare <process.h> but internet says <cstdlib>. Which one is correct ??

9th Feb 2018, 10:18 PM
N1H4R
N1H4R - avatar
2 ответов
+ 7
The internet. Here is some info on process.h https://en.m.wikipedia.org/wiki/Process.h In particular note the date of its creation (late 80's)
9th Feb 2018, 10:20 PM
jay
jay - avatar
+ 3
yeah it's very old
10th Feb 2018, 12:32 AM
N1H4R
N1H4R - avatar