Nov 5, 2012 at 7:04pm UTC
In the statements below, the occurrences of strings of * is new syntax for me. Can someone explain it?
Thank you.
char*** studentNames; // declaration
short** quizGrades; // declaration
enterGrades(studentNames, quizGrades, choice02a-1, quizAmt); // call stmnt
void enterGrades(char***, short**, short, short); // function header
Nov 5, 2012 at 7:54pm UTC
I've marked the post as solved after viewing an April, 2009, reply.
Nov 5, 2012 at 7:55pm UTC
its a pointer to a pointer to a pointer. You can also think of it a three or two dimensional array, since all arrays are just chunks of memory with a starting point.
another way to write the above to help visualize this is:
char studentName[3][3][3];
Nov 5, 2012 at 8:39pm UTC
its also not dynamic. But I thought it would be an easy way to understand.
Nov 5, 2012 at 8:45pm UTC
I think it's easier to understand as a pointer to a pointer to a pointer.