Question: 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

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!