How
to create our own header file
1.
Step 1 : Make headerfile. Example (write only function definition as you write in General C
Program) int add(int a,int b){ ...
2.
Step 2 : Save Code.
Save Above Code with [.h ] Extension . Let name of our header file be
myfirstheader [ myfirstheader.h ]
3.
Step 3 : Write Main C
Program To Use header file. #include<stdio.h>
No comments:
Post a Comment