The difference between Declaration and Forward declaration

When used as nouns, declaration means a written or oral indication of a fact, opinion, or belief, whereas forward declaration means the declaration of an identifier before it is given a complete definition, so that the compiler can know its data type and memory size.


check bellow for the other definitions of Declaration and Forward declaration

  1. Declaration as a noun:

    A written or oral indication of a fact, opinion, or belief.

  2. Declaration as a noun:

    A list of items for various legal purposes, e.g. customs declaration.

  3. Declaration as a noun:

    The act or process of declaring.

  4. Declaration as a noun (cricket):

    The act, by the captain of a batting side, of declaring an innings closed.

  5. Declaration as a noun (legal):

    In common law, the formal document specifying plaintiff's cause of action, including the facts necessary to sustain a proper cause of action, and to advise the defendant of the grounds upon which he is being sued.

  6. Declaration as a noun (computing):

    The specification of an object, such as a variable or function, establishing its existence but not necessarily describing its contents.

  1. Forward declaration as a noun (programming):

    The declaration of an identifier before it is given a complete definition, so that the compiler can know its data type and memory size.