I have gone through already existing information available on
difference between typedef and define & typedef,#define
All replies are really informative. I just came across one more example, can anyone please provide the reason for this behavior .
For declaring unsigned int variable this will work:
#define INTEGER int
unsigned INTEGER i = 10;
But, it won't work in case of typedef,
e.g.
typedef int INTEGER;
unsigned INTEGER i = 10;
it will throw error: ‘i’ undeclared (first use in this function)
Thanks in Advance!