GENERAL: LONG UNSIGNED GENERATES SYNTAX ERROR
Information in this article applies to:
If I declare a variable as:
long unsigned x;
I get a syntax error when I compile my file. This should be accepted since unsigned long is a valid type.
According to the ANSI C Standard, section 6.5.2 Type Specifiers (ANSI/ISO 9899-1990), only the following are valid type specifiers (comma separated sets designate the same type):
Since long unsigned is not included in the list, it is not a valid type specifier and results in a syntax error. Use unsigned long in your program.
Last Reviewed: Monday, October 11, 2004
of your data.