A header file contains a set of common directives, function references, calls and definitions that are common to most windows progams. Rather than having to enter those details every time you write a program you have them in a file which gets included.
That way you can write a program quicker as you don't have to add the same stuff into every program. It also means that if you want to change any of the common functions you just change it in one file and that file is included in all others automatically.
Wikipedia has a pretty good page about them at http://en.wikipedia.org/wiki/Header_file
Why #include%26lt;windows.h%26gt; header file is used in c programming language?
%26lt;windows.h%26gt; file is the header file that contains all essential API functions of the WINDOWS operating system
you use this file only if you make programs which uses functions for GUI or other system functions
for making simple programs you dont use this file just
%26lt;stdio.h%26gt; and %26lt;conio.h%26gt; is enough.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment