What would following typedef mean, and why would it be required
typedef unsigned long int ULONG;
how different is it from
typedef unsigned long ULONG;
For gcc sizeof int = 4, sizeof long = 8, and sizeof ULONG = 8.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are the same. Because
longis a modifier for anintby default,intcan be omitted. The same goes forshortandshort int,unsignedandunsigned int, etc.The essential thing to understand here is that
long,shortandunsignedare type modifiers, not types themselves, unlikeint,char,double, etc.