Make the difference.. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Make the difference..

progeniprogeni Posts: 20Member
will these two work in same manner?
#define intp int *
typedef int * inpp;

Comments

  • LundinLundin Posts: 3,711Member
    : will these two work in same manner?
    : #define intp int *
    : typedef int * inpp;
    :


    No.
  • stephlstephl Posts: 422Member
    : : will these two work in same manner?
    : : #define intp int *
    : : typedef int * inpp;
    : :
    :
    :
    : No.
    :
    Lundin, may you be a bit clearer because the differences are not so obvious to me?

    Steph
  • LundinLundin Posts: 3,711Member
    : : : will these two work in same manner?
    : : : #define intp int *
    : : : typedef int * inpp;
    : : :
    : :
    : :
    : : No.
    : :
    : Lundin, may you be a bit clearer because the differences are not so obvious to me?
    :
    : Steph
    :

    I did that on purpose since it is obviously homework.

    http://c-faq.com/decl/typedefvsdefine.html
  • stephlstephl Posts: 422Member
    : : : : will these two work in same manner?
    : : : : #define intp int *
    : : : : typedef int * inpp;
    : : : :
    : : :
    : : :
    : : : No.
    : : :
    : : Lundin, may you be a bit clearer because the differences are not so obvious to me?
    : :
    : : Steph
    : :
    :
    : I did that on purpose since it is obviously homework.
    :
    : http://c-faq.com/decl/typedefvsdefine.html
    :
    OK, it did not come to my mind that it could be homework. I am too naive :-), sorry.
    Thanks for the answer.

    Steph
Sign In or Register to comment.