On Nov 15, 2007 11:46 AM, mahesh w <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> As I think "typedef" is used for creating alias for a
> data type( user defined data type like struct or
> language supported data type). It is all concerned
> with data type.
>
> "#define" is used for replacing the defined macro with
> its body. "#define" is processed by macro
> preprocessor.
> (I don't know what processes the "typedef". macro
> preprocessor OR compiler OR something else).
> plz correct me whereever I am wrong.
>
> Can we achieve the functionality of "typedef" with
> "#define"? If yes why "typedef" is there?
>
> What are the differences?
>
> Mahesh
>
http://c-faq.com/decl/typedefvsdefine.html

Reply via email to