Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • 7
    you might want to mention header guards Commented May 14, 2010 at 1:48
  • @luke: Thanks a lot. Have no idea what header guards are. Going to google it now. Thanks again. Commented May 14, 2010 at 1:50
  • 2
    @luke They're officially called include guards, but your term is pretty common. There's also #pragma once, which is non-standard but widely supported and (in my opinion) much simpler Commented May 14, 2010 at 1:57
  • 1
    That is nice, but can't I say what a function does in the header file to? Is there any other form of modular programming? Commented May 14, 2010 at 2:03
  • 1
    @PabloSantaCruz then where would the compiler search for the function definition for the prototypes declared in the .h file? because we are not giving any clue where the functions are defined. Commented Oct 11, 2013 at 4:04