Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Explain the motivation behind using a header file for a C program-Solu.docx

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité

Consultez-les par la suite

1 sur 1 Publicité

Explain the motivation behind using a header file for a C program-Solu.docx

Télécharger pour lire hors ligne

Explain the motivation behind using a header file for a C program.
Solution
A header file is a file containing C declarations and macro definitions to be shared between several source files.
Header files purpose:
System header files declare the interfaces to parts of the operating system.
these will provide the definitions and declarations you need to invoke system calls and libraries.
Your own header files contain declarations for interfaces between the source files of your program. Each time you have a group of related declarations and macro definitions all or most of which are needed in several different source files, it is a good idea to create a header file for them.
Including a header file is equal to copying the content of the header file
.

Explain the motivation behind using a header file for a C program.
Solution
A header file is a file containing C declarations and macro definitions to be shared between several source files.
Header files purpose:
System header files declare the interfaces to parts of the operating system.
these will provide the definitions and declarations you need to invoke system calls and libraries.
Your own header files contain declarations for interfaces between the source files of your program. Each time you have a group of related declarations and macro definitions all or most of which are needed in several different source files, it is a good idea to create a header file for them.
Including a header file is equal to copying the content of the header file
.

Publicité
Publicité

Plus De Contenu Connexe

Plus par rtodd432 (20)

Plus récents (20)

Publicité

Explain the motivation behind using a header file for a C program-Solu.docx

  1. 1. Explain the motivation behind using a header file for a C program. Solution A header file is a file containing C declarations and macro definitions to be shared between several source files. Header files purpose: System header files declare the interfaces to parts of the operating system. these will provide the definitions and declarations you need to invoke system calls and libraries. Your own header files contain declarations for interfaces between the source files of your program. Each time you have a group of related declarations and macro definitions all or most of which are needed in several different source files, it is a good idea to create a header file for them. Including a header file is equal to copying the content of the header file

×