What is the significance of the .h
extension in header files of a C or C++ program?
Asked
Active
Viewed 1,041 times
-2

Acorn
- 24,970
- 5
- 40
- 69
-
3"H" is for "Header" (and ["C" is for "Cookie"](https://youtu.be/Ye8mB6VsUHw)). – Sergey Kalinichenko May 06 '18 at 21:06
-
It's simply "h" for "**h**eader file". It's a convention and not enforced. – Some programmer dude May 06 '18 at 21:06
2 Answers
1
No significance. It is just a convention for programmers to quickly recognize what is in the file. Standard C++ library headers don't have it.

Robert Andrzejuk
- 5,076
- 2
- 22
- 31
1
to mark a header file, .h stands for header as much as .cpp stands for C Plus Plus, did I get your question right?

Pierre Ghaly
- 777
- 2
- 7
- 17