pointer question

I'm having a problem understanding the difference between these two pointers:

ndpt->gConcentration
nd[i]->gConcentration

I know the second is a pointer array created in the class, although I've not seen the double asterix before:

NodalPoint **nd;

and I can't find any declaration for the first pointer ndpt? Can anyone help me understand what the difference is here or where it could come from?
If you have a double asterisk, it means you have a pointer to a pointer.

Effectively, you read pointer declarations "backwards", and pronouce the asterisk as "pointer to".

So NodalPoint **nd; would be read as:

"nd is a pointer to a pointer to a NodalPoint"

ndpt probably is just a single pointer: NodalPoint *ndpt;
Topic archived. No new replies allowed.