answersLogoWhite

0

A header file is used to define constants, variables, macro's and functions that may be common to several applications. When a system consists of multiple applications that all access the same data it becomes essential that each application uses identical definitions and it is safer for all of those applications to use the same methods to read that data. updating data should only be performed by a single function, from a single application, but reading data can be safely performed by using the common defintions found in header files. you use header files in the programming language C to declare struct's functions and other things that could be usefull for your program.. it makes thing's simpler and easy to use...

User Avatar

Wiki User

19y ago

What else can I help you with?

Related Questions

How can you create a header file in c?

Use a text-editor.


How do you include a system header file called sysheader.h in a c source file?

There is no system header called share.h, but if there were, it would be: #include <share.h>


Which directories should be entered for graphics code in c?

use grphics.h header file


How can you create a headerfile in a c?

Create the header file as a .h file in the same way you create a source file, .c and place it in the same directory as the .c files. To incorporate it, use the... #include "my_header_file.h" ... directive. Note that there are double quotes instead of greater/less signs. This tells the compiler to look first in the source directory.


How do you use cosine in c language?

Include the header file math.h and use the function acos(d)


How is possible to addition of two number without including header file in C language?

You do not need a header file to add two numbers in C. You do need the header files if you want to use the run-time library, which includes the ability to format and display the result.


How do you include classes and structures in header files in c plus plus?

Classes and structures can be put in a header file the same way you would use them in a main program; the only difference is that they are placed in a separate file, called a header file. Then, after creating a new file, include that new file with the definition by the use of the preprocessor #include statement.


Why you use header files in c?

the use of header files is to add functionality. Header files are basically saying put code in that header file here so you don't have to type that many lines of code.


How can you create a c program without using header file?

C programs do not require header files. If you want a C program without header files, you can simply not create them. However, you may or may not be able to include your non-header file source files.


What is the use of header file stdbool.h?

stdbool header file use for a new data type that is boolean value


What is the use of header files as used in C programming?

Header files are used to have declarations. It is simple to include a single header file than writing all the needed functions prototypes.


How many types in header file in mathh header file in c language?

Look for typedef in it, but I don't think you will find any.