Exforsys
+ Reply to Thread
Results 1 to 2 of 2

difference

This is a discussion on difference within the C and C++ forums, part of the Programming Talk category; what is the difference between a 'declaration','declaration proto-type' and 'defination'....

  1. #1
    chaisen2006 is offline Junior Member Array
    Join Date
    Nov 2006
    Answers
    3

    Unhappy difference

    what is the difference between a 'declaration','declaration proto-type' and 'defination'.


  2. #2
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    When we have declared a variable, we have meant that we have told the compiler about the variable; i.e. its type and its name, as well as allocated a memory cell for the variable .
    This latter action of the compiler, allocation of storage, is more properly called the definition of the variable. The stricter definition of declaration is simply to describe information about the variable.
    The prototype declaration defines its interface--how the prototype communicates with the rest of the scene and what parameters may be set for each instance of the prototype.


Latest Article

Network Security Risk Assessment and Measurement

Read More...