0

header files

Why don't we use the extension <.h> for the header files in c++ OR is it compiler/machine dependent?

5th Feb 2017, 6:57 AM
Nishit Chaudhari
Nishit Chaudhari - avatar
1 Answer
+ 2
Add your files what u need.You can call these by ->include(), include_once(), virtual(), require() and require_once(). For Example: <?php include("includes/header.html"); ?> In C and C++, A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files.For example: #include "header.h"
5th Feb 2017, 7:18 AM
Ashraf Hossain Khan
Ashraf Hossain Khan - avatar