Using the C++ Math Library    

Overview

You can use any indexing expression - an array together with one or more subscripts - as the target of an assignment statement. An assignment statement consists of a destination to the left of the equals (=) operator and a source to the right. When the destination is an indexing expression, the indexing expression selects the elements that are to be modified; the source specifies the new values for those elements.

You can use five different kinds of indices:

The examples below do not present all the possible combinations of these index types.


 Using Indexing in Assignment Statements Assigning to a Single Element