3 ms·
Sure you can. int aFoo[]; has many legal array operations possible: *(aFoo+3) should work fine and return the 4th int in the array.
by JoeAltmaier 7y ago
Sure you can. int aFoo[]; has many legal array operations possible:
*(aFoo+3) should work fine and return the 4th int in the array.
- pvarangot 7y agoI think your star operator there is making the compiler cast your array to pointer implicitly.
- JoeAltmaier 7y agoIts all symbols, so you can say whatever. But if it looks like a pointer, walks like a pointer, and quacks like a pointer, Its A Pointer.