write 2 advantages of #include

0 votes
asked Jun 22, 2017 in C++ by anonymous
edited Jun 22, 2017 by admin
Hi All

   Any one please give the 2 importance about #include in c++?

 Why we need #include in C++?

1 Answer

0 votes
answered Jun 22, 2017 by admin (8,145 points)

A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files. There are two types of header files: the files that the programmer writes and the files that comes with your compiler.