write 2 advantages of #include

0 votes
24 views
asked Jun 22 in C++ by anonymous
edited Jun 22 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 by admin (8,115 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.

...