Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

int monSize [ ] = { 1 4 , 1 5 , 2 1 , 2 7 , 3 1 , 3 7 } ;

int monSize[]={14,15,21,27,31,37};
int* sizePtr = &monSize[2];
cout << "Array content prior to pointer manipulation
";
cout << monSize[1]<<''<< monSize[2]<<''<< monSize[3]<<''<< sizePtr <<" : "<<*sizePtr <<
endl;
// Replace YourCodeHere!! in the following statement with one of 10 pointer actions below.
// You must do all 10, one at time.
cout << YourCodeHere!! << endl;
cout << endl << "Array content after ptr manipulation" << endl;
cout << monSize[1]<<''<< monSize[2]<<''<< monSize[3]<<''<< sizePtr <<" : "<<*sizePtr <<
endl;
cout << endl;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions