This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

creating header file n how to use it

Hi ,

i want to know how can i create a header file and use it in my main program. will be thankful if anybody can provide a simple example and with whole process needed.

thanks

Parents
  • Hmm... the basics are there - but there's an awful lot of questionable detail; eg,

    "C Programming Language uses header files inclusion at the beginning of the program"

    The C programming language has no specific requirement for headers to be included at the beginning of a "program" (sic).

    "Header files helps in reducing the code complexity"

    When used appropriately, they may help with complexity, but they're just a tool - not a magic bullet

    "The linker automatically links with all the library files if we include its corresponding header files"

    The Linker has absolutely no knowledge of header files whatsoever.

Reply
  • Hmm... the basics are there - but there's an awful lot of questionable detail; eg,

    "C Programming Language uses header files inclusion at the beginning of the program"

    The C programming language has no specific requirement for headers to be included at the beginning of a "program" (sic).

    "Header files helps in reducing the code complexity"

    When used appropriately, they may help with complexity, but they're just a tool - not a magic bullet

    "The linker automatically links with all the library files if we include its corresponding header files"

    The Linker has absolutely no knowledge of header files whatsoever.

Children
No data