Results 1 to 5 of 5

Thread: Advantages of Header files

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    72

    Advantages of Header files

    I am puzzled by the concept of header files. Is it possible to write our own header files? If we can write in what situations would it be required. I want to know whether in real time application one would write header files on their own.


  2. #2
    Expert Member
    Join Date
    May 2006
    Answers
    114

    Re: Advantages of Header files

    Joel for your question of whether it is possible to write customized header files and for the question of whether customized header files finds its usage in real time application for both questions the answer is YES


  3. #3
    Contributing Member
    Join Date
    May 2006
    Answers
    75

    Re: Advantages of Header files

    I like to put the reason for why a header concept is needed. This is needed because to make the programming methodology simple and to save time in the process the header files are used. Say if one declares the variables, functions and so on in global place like header file then any further modification in any of this in any modules would make the process in other words the change needs to be made in a single place namely the header file apart from the modules.


  4. #4
    Contributing Member
    Join Date
    Jul 2006
    Answers
    76

    Question Re: Advantages of Header files

    Is that the header file must be located in the same folder where I have written my C program or is it that header file can be anywhere. If the header file can be placed anywhere then how can I include that in the program. Do I need to include the full pathname in my program?


  5. #5
    Junior Member
    Join Date
    Jul 2007
    Answers
    3

    Thumbs up Re: Advantages of Header files

    Header files are part of efficient programming .
    For example if the user doesn't need a cached copy of data as a part of his response taht means he needs a fresh copy of data to be generated by the server , and to achive this task he would be using

    response.setHeader("Cache-Control","no-store"); //HTTP 1.1
    response.setHeader("Pragma\","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy server


    and also there are many more headers , once see google.com for this .


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact