Re: declaration vs. defintion

From: Anand Hariharan (mailto.anand.hariharan_at_gmail.com)
Date: 11/02/04


Date: 2 Nov 2004 10:55:32 -0800

Mark P <not@my.real.email> wrote in message news:<cm38j602941@enews2.newsguy.com>...
> Is there any simple but complete explanation on the difference between a
> declaration and a definition. I feel I know the general idea having
> seen a lot of examples in several books (Stroustrup, for example), but a
> unifying picture would be helpful to me.

:-)

I would say that you are a guy who professes interest in C++. This is
based on your post (declaration).

Would that suffice for me to, say, do business with you? Maybe I
would like to know how big you are, say, before I extend my hand to
shake-hands with you (size). Maybe I would like to know what services
you offer (public members). For this, I have to know precisely what
you are (definition).

:-)

Does this help?

- Anand



Relevant Pages

  • Re: Static function prototype
    ... any good explanation about it. ... declaration: If the definition appears before the function's first ... it mean that there is really no need to use extern (in the module ...
    (comp.lang.c)
  • Re: Static function prototype
    ... any good explanation about it. ... makes this not just good practice, ... declaration: If the definition appears before the function's first ...
    (comp.lang.c)
  • Re: declaration vs. defintion
    ... Anand Hariharan wrote: ... >>Is there any simple but complete explanation on the difference between a ... > based on your post (declaration). ... > shake-hands with you. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: declaration vs. defintion
    ... > Is there any simple but complete explanation on the difference between a ... > declaration and a definition. ... > unifying picture would be helpful to me. ... confusing w.r.t. classes. ...
    (alt.comp.lang.learn.c-cpp)
  • declaration vs. defintion
    ... Is there any simple but complete explanation on the difference between a ... declaration and a definition. ... seen a lot of examples in several books (Stroustrup, for example), but a ... unifying picture would be helpful to me. ...
    (alt.comp.lang.learn.c-cpp)