Which of the following is a user-defined header file extension used in C++?
Options
A.
.hg
B.
.cpp
C.
.h
D.
More than one of the above
E.
None of the above
Correct Answer (Detailed Explanation is Below)
C.
.h
Detailed Explanation
Correct Answer: Option C — .h
Explanation: The .h extension is commonly used for user-defined C++ header files. Header files typically contain declarations, function prototypes, and class definitions. The .hpp extension is also commonly used.