Question: done in c++ and needs to include source and header files. Create a program that contains an integer, set the integer to five, display it,

done in c++ and needs to include source and header files.

Create a program that contains an integer, set the integer to five, display it, create a pointer to the same integer, use it to change the value to 10, then output it again.

Create an array of ten integers, use a for loop to set them equal to the first 10 squares, then create a pointer, and use the pointer (with dereferencing) to display the values in a second for loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!