answersLogoWhite

0


Best Answer

The #include directive is used to tell the preprocessor that the specified file's contents are to be included at the point where the directive appears, just as if you'd typed those contents in full yourself.

Include files are primarily used to organise declarations of external variables and functions, complex data types, constants and macro definitions. The code need only be declared once, and included wherever required. Think of include files as a means of providing forward declarations without having to retype those declarations in full. The definitions of those declarations needn't be contained in the included file, but they must be made available to the program, either as a linked library or as a separate source code file which includes those same declarations.

The include keyword is used in C to tell the linker what libraries your code is going to be using.

User Avatar

Wiki User

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

Wiki User

7y ago

The #include directive means insert the contents of the named file in place of the directive during preprocessing, just as if you'd copy/pasted the entire file by hand. Using the #include directive eliminates duplicate code, eases code maintenance, helps modularise code, ensures consistency and aids readability. Typically, headers contain the declarations and inline function definitions required by the files that include them. Those headers may include other headers, thus a single #include directive may introduce many thousands of lines of code which would otherwise hinder the readability of your code. If anyone really needed to see the code contained in an included header, they can more easily view it in the header itself.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Technically, there isn't one... the compiler itself never sees the "include" directive; it's acted on by the preprocessor. "#include" tells cpp to, um, include another file, as if the contents of that file been typed directly into the file being processed.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

It was a Header file in C program which is very useful

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is function of include in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you use cosine in c language?

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


What is the differnce between ordinary function and template function of c language?

The c language does not have template functions. That is a c++ thing.


Call by function in c language?

I guess you meant the following:'In C language, when you call a function,the parameters are passed by-value.'


What are the library function in c language?

libray in c++


What are the hearing rods for identifier 'c' language?

The hearing rods for identifier "c" language is the function.


What is function of brack in c language?

Nothing.


What is the header in C programming language?

A haeder is a text-file, meant to include (#include) into a source-file. Usually it contains variable and function declarations, constants, type-definitions, documentation.


Is combination a library function in c language of programming?

No.


Why Clearscreen in c language is used?

'Clearscreen' is not used in C language. TurboC has a clrscr function (prototype in conio.h).


What is a programming language and with three example?

A programming language is a language in which a human can tell a machine to do something, three examples include: C, C++ and C#.


Can you write any c prigramme in c language witthout any function?

No. At minimum, you need to provide a main() function.


Why you use 'integer' before function in C language?

To specify the return-type of the function.