: : 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?
: : : 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.
: : : : 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.
Comments
: #define intp int *
: typedef int * inpp;
:
No.
: : #define intp int *
: : typedef int * inpp;
: :
:
:
: No.
:
Lundin, may you be a bit clearer because the differences are not so obvious to me?
Steph
: : : #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
: : : : #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