Pointer/Subscript Notation

Pointers can be subscripted exactly as built-in arrays can. For example, the expression

bPtr[ 1 ]

refers to b[1]; this expression uses pointer/subscript notation.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.