by onre · 1y ago · 0 comments
char* cat, dog; /* one char pointer, one char */
char *cat, *dog; /* two char pointers */ typedef foo * FooP;
FooP a, b; // Both are pointers
Pointer typedefs are misguided but there is no denying that C is inconsistent on whether the '*' is part of the type or not. char[8] buffer;
Alas, it's not the syntax Dennis Ritchie settled upon.