This is the first thing which we declare in the program. There are many header files but right now, starting as a beginner, there are only few headers which are useful to us right now. Though, at the end of the post, I'll provide the list of header files. Headers files are files which contain built-in functions, some functions are pre-defined in the header files. Let's take for an example, <stdio.h> header files, known as Standard I/O header file, is having the pre-defined function of printing and scanning the statement. So to use the printf and scanf function, we need to declare the header file at the beginning of the program. Let us learn, how to declare the header file. #include <headerfile.h> This is the syntax for declaring the header file..h indicates that it is a header file. The following are the header files which we will be using in this tutorial. 1. <stdio.h> : Contains printf, scanf and other using functions. 2. <conio.h> : It is required when we don't have terminal to execute the file. 3. <math.h> : Contains all the mathematical formulas as functions. 4. <ctype.h> : Contains several functions for testing purpose. 5. <string.h> : Contains function performed on strings. Other than these, there are many other header files which can be included in the program.
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
0 Comment