What's the difference between long unsigned int and unsigned long int

The compiler accepts these two values.

long unsigned int a; unsigned long int a;

+3


source to share


2 answers


They are the same.

Quote C11

, chapter ยง6.7.2, Type specifiers (emphasis)

List:



type specifier:

void

char

short

int

long

float

double

signed

unsigned

_Bool

_Complex

atomic-type specifier

structure or union-specifier

enum specifier

Breece name

and, P2,

The declaration specifiers in each declaration include at least one type specifier, and in the specifier-specifier list in each structure declaration and type name. Each list of type specifiers must be one of the following multisets (comma separated when more than one multiset per element); type specifiers can appear in any order, possibly mixed with other declaration specifiers.

+5


source


No difference. Identical types.



+1


source







All Articles