|ARM Technical Support Knowledge Articles|
Applies to: General Topics
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.
Article last edited on: 2004-10-11 09:45:09
Did you find this article helpful? Yes No
How can we improve this article?