Again doing an exercise in C++ Programming Language 3rd edition chapter five.
This time it's typedefs.
I can't seem to figure out a typedef for a pointer to an array of char.
****
figured it out
typedef char (*tpcharray)[size];
If you read my post about refrence to an array of char, Prelude's solution for declaration is
char charray[8];
char (&rcharray)[8]=charray;
I was using
char * pachar=charray; // as a pointer to array of char is this correct?
or is
char (*pachar)[size]; // the correct way
or would you do somthing like
char (*pcharray)[8]=charray;
I figured out an array of pointers ie
typedef char* pcharray[8];