Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is about ANSI-C++?

0
Posted

What is about ANSI-C++?

0

Well Rachna! In ANSI-C++ the way to include header files from the standard library has changed. The standard specifies the following modification from the C way of including standard header files: Header file names no longer maintain the .h extension typical of the C language and of pre-standard C++ compilers, as in the case of stdio.h, stdlib.h, iostream.h, etc. This extension h simply disappears and files previously known as iostream.h become iostream (without .h). Header files that come from the C language now have to be preceded by a c character in order to distinguish them from the new C++ exclusive header files that have the same name. For example stdio.h becomes cstdio . All classes and functions defined in standard libraries are under the std namespace instead of being global. This not applies to C macros that remain as C macros. Here you have a list of the standard C++ header files:

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123