Computer Science, asked by Gopalawasarmol, 1 year ago

How to create user define header file in c or c++ programing

Answers

Answered by Aasthakatheriya1
5
hello..
Things to keep in mind.

Put only what is necessary in a header file.Typically this means function and type declarations, global variables, structure declarations and in some cases, inline functions - things that you need to access from a different source files.Don’t put function definitions in a header. Put these things in a separate .c file.In a header file don’t include headers that are not needed. For instance, don’t include stdio.h in your header file if you don’t need it there.Include basic documentation
I hope it help you

Gopalawasarmol: Tq u
Gopalawasarmol: So much thanks
Aasthakatheriya1: ur welcome
Similar questions