Pointers

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

I've marked the post as solved after viewing an April, 2009, reply.
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];
char studentName[3][3][3];

But then he would not be able to pass studentName to enterGrades.
its also not dynamic. But I thought it would be an easy way to understand.
I think it's easier to understand as a pointer to a pointer to a pointer.
Topic archived. No new replies allowed.