Make the difference..

will these two work in same manner?
#define intp int *
typedef int * inpp;

Comments

  • : will these two work in same manner?
    : #define intp int *
    : typedef int * inpp;
    :


    No.
  • : : 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
  • : : : 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
  • : : : : 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.

Howdy, Stranger!

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

Categories

In this Discussion