Now, again see the first C program I wrote
#include <stdio.h>
int main()
{
printf("I am a Programmer\n");
return 0;
}
Now, what #include <stdio.h> means actually
Here, stdio.h known as a Header file 😮, remember it's not studio.h 😜. So many persons done that mistake when he/she first write C codes
And, the coolest thing about header file is, it will give you a headache 😨
OK, I am just kidding
Header file term refers to that kind of file which contains C function declarations and macro definitions. A C header file contains .h extension.
Like in this code stdio.h contains function declaration and definition of printf() that's why we had to include the stdio.h header file at the top of the code
And, the coolest thing about header file is, it will give you a headache 😨
OK, I am just kidding
Header file term refers to that kind of file which contains C function declarations and macro definitions. A C header file contains .h extension.
Like in this code stdio.h contains function declaration and definition of printf() that's why we had to include the stdio.h header file at the top of the code
The basic syntax of including header files on top of the code
#include <header_file_name>
Now, you can wonder about printf() function, don't worry we will learn it gradually
Some frequently used C header files along with frequently used functions are listed below
Now, you can wonder about printf() function, don't worry we will learn it gradually
Some frequently used C header files along with frequently used functions are listed below
stdio.h - printf()
scanf()
stdbool.h - boolean data type support library
math.h - abs()
pow()
sqrt()
string.h - strlen()
strcpy()
strcat()
strcmp()
Now,
Don't fear guys you will learn these gradually as you walk through programming.
And one day you can teach someone too.
And as much as you walk, you will find this amusing.
Happy Coding
See You in the next tutorial
Next Post:
https://coderavens.blogspot.com/2018/05/c-programming-44-escape-sequence.html
Happy Coding
See You in the next tutorial
Next Post:
https://coderavens.blogspot.com/2018/05/c-programming-44-escape-sequence.html
Comments
Post a Comment