Re: Ahead of "main"?



On Apr 29, 7:05 pm, Keith Thompson <k...@xxxxxxx> wrote:

In any sizeable program, most of your functions are going to be in
separate source files, to be compiled and linked together with the one
containing main(). Usually you want function definitions in a .c
file, and declarations (to be visible to other translation units) in a
.h file.


tks.

.



Relevant Pages

  • Re: Question on Wording
    ... that upon my mentioning that function definitions are the only ... declarations that are not semicolon terminated, ... translation-unit declaration ... but it's just as easy to specify it as ...
    (comp.lang.c)
  • Re: program
    ... Morris Dovey writes: ... >> Function definitions can't be combined with other declarations ... It's implicit in the syntax. ...
    (comp.lang.c)
  • Re: Function prototypes
    ... and full function definitions: ... prohibition of "prototypes" to mean forward declarations, ... meaning of prototype, and the correct meaning is important. ...
    (comp.lang.c)
  • Re: Some Questions #2
    ... need a capacity in which to be stored. ... They are definitions as well as declarations. ... function definitions are also declarations. ...
    (comp.lang.c)