It is said that we can use cstdlib and stdlib.h header file as well.
My question is how can we use C language header file to fetch prototype of functions here in CPP too? Are C and CPP header files available for both, in C and CPP too?
Printable View
It is said that we can use cstdlib and stdlib.h header file as well.
My question is how can we use C language header file to fetch prototype of functions here in CPP too? Are C and CPP header files available for both, in C and CPP too?
For C++, use <cstdlib> & Co. (if necessary). In principle, you cannot rely on C Standard Library headers like <stdio.h> being bundled with your C++ compiler and thus should avoid using them in your code.
Please do not duplicate your posts!!!