4 ms·
Fun fact: the order of type qualifiers (const, volatile, restrict), type specifiers (char, int, long, short, float, double, signed, unsigned) and storage-class
by bluetomcat 3y ago
Fun fact: the order of type qualifiers (const, volatile, restrict), type specifiers (char, int, long, short, float, double, signed, unsigned) and storage-class specifiers (auto, register, static, extern, typedef) is not enforced at the current indirection level. This means that the following declarations are identical:
long long int x;
int long long x;
long int long x;
typedef int myint;
int typedef myint;
const char *s;
char const *s;
const char * const volatile restrict *ss;
const char * volatile const restrict *ss;
- qsort 3y agoBut preference in ordering immediately qualifies you as coming from the east or the west const.
- dmvdoug 3y agoI like the idea of someone sitting down and looking at someone else’s code, leaning back with satisfaction after they notice the programmer’s preference. “I like the cut of their jib.”
- jfghi 3y agoI remember some really nice macro usage.
- bombcar 3y agoYou could write a Sherlock Holmesesque code review short story based on it.
- justinlloyd 3y agoI do like the cut their jib as they place their asterisks next to the variable name rather the type, just as our forefathers intended!