Lesson 14-2: Pointer Variables
366 | Chapter 14
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Extend program Pointer by adding the code to print the three input values in
ascending order using the pointers to them. Show your output.
Exercise 2: Write a program that is the mirror image of program Pointer but for which the
values that are read in are strings of length ten rather than integer values. That is, read in three
strings, write them out, concatenate them (the string equivalent of addition), and print the result.
Show your input data and your output.
78828_CH14_DaleLab 5/22/09 7:32 AM Page 366

Get A Laboratory Course in C++, 5th Edition now with O’Reilly online learning.

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