WHAT YOU SHOULD INCLUDE IN A HEADER FILE ?

Dependra Pathak

Total Post:77

Points:385
Posted by  Dependra Pathak
 1452  View(s)
Ratings:
Rate this:
  1. Dependra Pathak

    Post:77

    Points:385
    What You Should Include in a Header File ?

    A header file should begin and end with #include guards to guarantee that it?s not #included more than once during the same compilation session. A typical #include guard looks as follows:
    // from stdlib.h
    #ifndef STDLIB_INCLUDED // included for the first time?
    #define STDLIB_INCLUDED

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!