top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to make one header file of our own in program which includes all header files of c?

+1 vote
485 views
How to make one header file of our own in program which includes all header files of c?
posted Feb 16, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Create myownheader.h file and include all other file like,

#include<stdio.h>    
#include<conio.h>    
#include<math.h>    
#include<stdlib.h>    
#include<string.h>    
#include<time.h>    
#include<ctype.h>    
#include<malloc.h>

and when you need any header file in .c file, add only myownheader.h. For example:

#include "myownheader.h"

int main()
{
// my code
}
answer Mar 2, 2017 by Mahedra Chaudhari
...