Explore BrainMass
Share

output of the codes

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

Trace the following code and give the output: (be sure to include the code used)

int arr[] = {4, -6, 22, 7, 13, 8};
in arrSize = sizeof(arr)/sizeof(int);
vector<int>v(arr.arr+arrSize);

while (!v.empty())
{ cout <<v.back() <<" ";
v.pop_back();
}

© BrainMass Inc. brainmass.com March 21, 2019, 4:21 pm ad1c9bdddf
https://brainmass.com/computer-science/cpp/output-codes-182694

Solution Summary

It traces the codes and provides the output.

$2.19