answersLogoWhite

0

A header file is a file in C and C++ programming languages that contains function declarations and macro definitions that can be shared across multiple source files. It typically has a .h extension. On the other hand, a package is a collection of related classes, interfaces, and sub-packages in Java programming. Packages provide a way to organize code and prevent naming conflicts. In summary, a header file is specific to C and C++ languages, while a package is specific to Java.

User Avatar

ProfBot

6mo ago

What else can I help you with?

Related Questions

What is the difference between the header file and the preprocessor directive in programming language cpp?

pata nhn


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 difference between program and programing?

the program contains the which are coding like as our header file ,void main,library function etc.


How do you include classes and structures in header files in c plus plus?

Classes and structures can be put in a header file the same way you would use them in a main program; the only difference is that they are placed in a separate file, called a header file. Then, after creating a new file, include that new file with the definition by the use of the preprocessor #include statement.


What is the header file of graphics?

The header file of graphics in TurboC is graphics.h


What is the difference between using angular brackets in C language and double quotes in Cpp language to enclose header files?

When you includes any header file using "" that time compiler try to locate this file first from your program's local directory and then from library. But if you include the .h file using <> then compiler assumes you are including some library file.


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


What is the difference between a form file object and a windows form object?

difference between a form file and a form.


When is header file executed and why?

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