Saturday, December 22, 2018

How to create our own header file






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

Which Python course is best for beginners?

Level Up Your Python Prowess: Newbie Ninjas: Don't fret, little grasshoppers! Courses like "Learn Python 3" on Codecade...