Arrays with 3 ***?

Hi! I'm trying to learn about dynamic arrays, but it's been a little hard for me, I don't understand why they have these *** or **

These are some examples of what I mean:

1
2
3
4
5
6
7
8
Worker ***arrWorker;

Worker **arrWorker;

arrWorker = new Worker *[size];

arrWorker[i] = new Worker [size];


I thank you for any help! :)
closed account (zb0S216C)
This declaration: int** is a pointer-to-a-pointer; its value is the address of a pointer. This declaration: int*** is a pointer-to-a-pointer-to-a-pointer; its value is the address of a pointer-to-a-pointer.

Wazzak
Topic archived. No new replies allowed.