answersLogoWhite

0


Best Answer

It depends on the header file and on the general organization of the project.

System header files, such as stdio.h or windows.h, are stored in a directory that the compiler knows about, but that you don't need to even think about.

Library header files are either stored in the same place that system header files are stored, or they are stored in a place reserved for the particular library. In the latter case, there will usually be build parameters that identify the header files and their associated library files.

User header files are either stored in the same directory as the source files, or they can be stored in a related directory, somewhere in the project directory tree.

well in most of the DOS/Windows C/C++ compilers predefined header files are stored in INCLUDE directory of the folder containing the compiler

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where headers files are generally stored?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Functions of conioh and processh header files?

Loads of them. Consult your help, or load these headers into a text-editor.


Why there is no need to include header files in c but it requires header files if saved with the extension of .cpp?

Not sure what you mean by not including header files in C. If header files contain declarations that are vital to your code, then you must include them. The same is true in C and C++, regardless of the file extension. Generally speaking, source files (.c and .cpp files) need to include all required headers (.h or .hpp files) while the headers themselves need only make forward declarations (known as incomplete types). There are exceptions, however. You cannot declare values of an incomplete type (only pointers and references can be incomplete), nor can you dereference an incomplete type. You also cannot derive a new class from an incomplete base class. Thus if any header falls into any of these categories then they must include the required headers rather than simply forward declare the incomplete types. Template classes are also regarded as incomplete if the entire definition is not available at the point of instantiation. For this reason, class templates cannot be split between header and source files like normal classes (the entire definition must be placed in the header) and the header must be included prior to each instantiation. Similarly with template functions.


What is the extension of a java byte code file?

.class is the extension of a java byte code file.


How do you install kernel header files?

OS/distribution dependent, for debian: apt-get install linux-kernel-headersOr you can download the whole kernel-source, which contains the headers as well.


What are the different methods of storing data in a program?

Program data can be stored in the program's data segment, on the stack or on the heap. Constants, static variables and global variables are always stored in the program's data segment. Local variables are always stored on the stack. Dynamic variables are always stored on the heap. User data is typically stored in files, but those files could exist literally anywhere, such as a local hard-disk drive, a file-server or "the cloud". However, data must be brought into working memory in order to operate upon it. Small amounts of data can be allocated within the data segment via static variables but generally you will use the heap. If the data is too large to fit into working memory all at once, use one or more temporary files on one or more local hard-disk drives and pull in what you need as and when you need it.

Related questions

How can Information spillage be prevented?

labeling all files, removable media and subject headers


in what folder are driver files stored?

In what folder are driver files stored?


Is it true or false that a directory is a type of file?

A directory is also known as a folder. It is not a file, rather it is where files are stored. Generally many directories make up a program. And many files are contained in each directory.


What are two header files needed in C plus plus programme?

stddef.h and vadefs.h are two of the many "primitive" headers which are often required in the majority of your programs, but there are many other more specialised headers, such as iostream, which will include these anyway, so you generally won't need to explicitly include them.


What order are files stored in the database?

simply files are stored in database in upper to lower order.


what is the name of where files are stored in a computer?

In the computer's HARD


What is information normally stored in client files and what is it used for?

what information is normally stored in client files and what is it used for


What information is normally stored in client files and what is it used for?

what information is normally stored in client files and what is it used for


What information is normally stored in client files and what is used for?

what information is normally stored in client files and what is it used for


How are videos stored in a computers memory?

the text files store in the document files the sound files store in the document files the pictures files store in the document files the video files store in the document files


Are Highly structured and organized data is stored in database files?

are structured and organized data stored in database files


Where Do Windows Update Files Get Stored?

update files are stored in windows software distribution folder. Name of the folder is downloads