Hiiiii guys,
What is the difference between stdio.h and cstdio.h ??
Thank you!
Hiiiii guys,
What is the difference between stdio.h and cstdio.h ??
Thank you!
It's my understanding that stdio.h is a C language include header file, and you would code it as:
And cstdio.h would be the same (or an equivalent) header file that you would include if you were coding in C++, like this:Code:#include <stdio.h>
Note that in C++, you would not use the .h.Code:#include <cstdio>
Todd
>What is the difference between stdio.h and cstdio.h ??
That's easy, there's no such thing as cstdio.h. But you probably meant cstdio, so the real answer is that cstdio is for C++ only and places all of the names from stdio.h in the std namespace. Aside from that, the two headers are functionally identical.
My best code is written with the delete key.
Cheers!!