here the reference for future headache [link].
This function modify the variable piStuff inside the function putStuff.
Example pointer to double pointer:
int **piStuff;
putStuff(&piStuff);
void putStuff(int ***ppiStuff)
{
*ppiStuff = new int* [SIZE_A];
for(int i=0; i<SIZE_A;i++) {
}
for(int i=0; i
}
}
}
Example pointer to pointer:
int *piStuff;
putStuff(&piStuff);
void putStuff(int **ppiStuff)
{
*ppiStuff = new int [SIZE];
for(int j=0; j
}
}
No comments:
Post a Comment