Is stdlib.h and cstdlib are same or different and how? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is stdlib.h and cstdlib are same or different and how?

Or they have different compiler??

6th Jun 2018, 3:03 AM
Rounak Sartaliya
Rounak Sartaliya - avatar
1 Answer
+ 3
They are the same, its just that cstdlib is the standard version, renamed like this after the standardization of the headers. The new standardized c++ headers (which were now binded to the standard namespace) were differentiated from the old ones by the omitted '.h' from their names. The headers imported from C had a 'c' added before their names after the '.h' was omitted.
6th Jun 2018, 5:04 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar