Double Referenced Pointers and Syntax

I'm just curious if anyone has trouble with double referenced points and their syntax? Pointers can be referenced as subscripted arrays or as normal pointer reference: ie.
1
2
bPtr[1];      //array format
*(bPtr + 1);  //pointer format 

I've found when using double referenced pointers, only normal pointer notation works. I cannot get subscripted array format to work for double referenced pointers. Has anyone had this problem? ie.
1
2
*bPtr[1];     //array format     <--- This method does not work!
*(*btr + 1);  //pointer format 

Cheers,
McDonald
Last edited on
Maybe this works:
 
*(bPtr[1])
That does work.
Thank you Ropez.
Cheers,
McDonald
It might be an interesting point to say that:
 
*bPtr[1];

is not a double dereferenced pointer, but actually a dereferenced pointer-array element.
I think it would be best to avoid array notation for pointers, unless utilizing a pointer-array.
Topic archived. No new replies allowed.