What output is generated for each statement numbered Problem
What output is generated for each statement numbered Problems 26 - 35 below.//Assume all values including memory addresses are output in decimal notation.//This program shall be executed by typing ./exam2 at the Linux prompt #include using namespace std; void DoSomething (int& r, int* s) {s[2] = s[1] % r;} int main (int argc, char* argv[]) {int x = 4;//Assume the variable x is stored at location 1000 int y = 3;//Assume the variable y is stored at location 1100 int z[3] = {2, 1, 0};//Assume base address of array z is location 1200 int *a = &x;//Assume the variable a is stored at location 1300 int* b = &z;[0];//Assume the variable b is stored at location 1400 cout
Solution
Answers:
Problem #26=>C
Problem #27=>AD
Problem #28=>C
Problem #29=>AB
Problem #30=>1
Problem #31=>BE
Problem #32=>C
Problem #33=>BE
Problem #34=>A
