answersLogoWhite

0

What is need of header file?

User Avatar

Anonymous

9y ago
Updated: 5/14/2022

The compiler can only see one translation unit at a time, so every translation unit that calls a function (but does not define it) must at least declare that function. Headers allows us to share declarations consistently amongst many translation units with a simple #include directive.

Headers can also declare data types, aliases, constants and macros. Functions can also be defined in headers, but these must be declared inline.

User Avatar

Alberta Schmitt

Lvl 10
3y ago

What else can I help you with?

Related Questions

How do you create a user defined header file?

Header files are not much different from usual cpp files. There are basically two different things. It's file extension: you need to choose "header file" when you create it or save as .h file. Second is header files do not have main() function. When you are done with you header file do not forger to include it in your project by writing preprocessor directive:#include "your_header_file.h"


What is the different between header file and header pointer?

Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).


What is the header file of graphics?

The header file of graphics in TurboC is graphics.h


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 correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.


What is the use of header file stdbool.h?

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


Which header file is FILE declared in?

The FILE type is declared in stdio.h.


If a file header is lost or corrupted and an application needs that header to read the file how can you recover the contents of the file?

Not possible. Always make backup copies.


When is header file executed and why?

Never, and the reason is that header files are not meant to be executed.


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>


What does each csv file need to begin with when used with the csvde command-line tool?

header record


Can you open header file?

Yes, it is a plain text file.