11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

128Part II: Becoming a Functional C++ ProgrammerApplying operators to theaddress of an arrayThe correspondence between indexing an array and pointer arithmetic isuseful.For example, a displayArray() function used to display the contents of anarray of integers can be written as follows:// displayArray - display the members of an// array of length nSizevoid displayArray(int intArray[], int nSize){cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!