What Is Actually The Purpose Of A Header File In C+ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What Is Actually The Purpose Of A Header File In C+

31st May 2020, 7:53 PM
Nathaniel Kwaku Awenate
Nathaniel Kwaku Awenate - avatar
3 Answers
+ 1
Header files contains those functions which are required for proper execution of program. For example all the functions related to console are present inside conio.h
31st May 2020, 8:22 PM
Hardik Sharma
Hardik Sharma - avatar
0
The simplest answer, It saves time and makes the development process easier and efficient. Definition:- Header files contain definitions of Functions and Variables, which is imported or used into any C++ program by using the pre-processor #include statement. 
31st May 2020, 8:22 PM
Robin Singh
Robin Singh - avatar