|
|
|
|
|
by kazinator
974 days ago
|
|
Because the syntax is: <specifiers> <declarator> {, <declarator>, ...} ;
The star is a type-deriving operator that is part of the <declarator>, not part of the <specifiers>!This declares two pointers to char: char *foo, *bar;
This declares foo as a pointer to char, and bar as a char: char* foo, bar;
We have created a trompe l'oeil by separating the * from the declarator to which it begins and attaching it to the specifier to which it doesn't. |
|