answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Create a new file with an (foo.)h extension. Now you have a header file that you can put stuff in, copy this new file into the folder where all your header file resides and #include "foo.h" in the c source files that need to reference the header file.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

> How do you create

With your favourite text editor/IDE.

> and use your own header files in C?

#include "my_own_header.h"

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you create a headerfile in a c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is headerfile?

who hold the header information is called headerfile.


Can you write a c program without using headerfile?

Yes, but if you intend to do any useful work and call any library functions, you will need to know their prototypes in order to call them. That's one of the values of the headerfile.


Create a spiral in C programming?

create spiral in c programming?


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


How you create table in c language?

The simplest way to create a table in C is to use a two-dimensional array.


How do you create modules in c language?

by using structure in c.........


How to create a thread in c?

With pthread_create.


Who create C programming?

Many people. They are known as C-programmers.


6 letter word that starts with C and ends with E?

create create


Draw Create Concentric Circles using c?

Create Concentric Circles.


Open fopen create files. How to you create a folderdirectory?

In Visual C++, or C# you can use static method Directory or non-static DirectoryInfo.


How do you create software in c?

All you need is a text editor and a C-compiler.