answersLogoWhite

0

Why you use header files in c?

Updated: 10/24/2022
User Avatar

Wiki User

14y ago

Best Answer

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.

User Avatar

Wiki User

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

Wiki User

13y ago

Because else you can't use the functions declared in that header file. E.g. we include stdio.h so we can use I/O functions, such as printf, putc and getch.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why you use header files in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Header files in Java programming?

Java does not require header files like C/C++.


Why to use header file to easy know?

in the java as we use the inheritance property in the same way we can get the the inheritance property in c by using the prepared header files( .h files). there a single program in c use the many methods of many header files like math.h give us to use the use of floor(), sqrt() e.t.c. functions..


What is the role of header files in c?

Header files allow the user to make use of predefined libraries in order to save time and reuse code.


How many header are using in c programming?

No explicit limit, you can use so many header files as you want.


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 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.


Explain about header files used in c language?

list of header files in c and function prototype associated with each file


Why is it necessary to include header files in C?

It isn't necessary to include header files in C. However, without the functionality provided by some header files, your program wouldn't be able to do very much that is useful.


Why doesn't Java use header files?

A header file in C is used to import the features of parent classes in our class. The same feature is provided by the import statement in Java hence the header files are not used.


What are the Names of header files in java?

Java doesn't use header files.


How many header files are there in C?

256


Can you have nested header files in C?

Yes.