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
Forgot the famous last words? Access your message archive online at
http://in.messenger.yahoo.com/webmessengerpromo.php