Question: You are given the source code below. You are going to assign the last 2 digits of your student number into the variable myStudentIDLast2Digits. the

You are given the source code below. You are going to assign the last 2 digits of your student number into the variable myStudentIDLast2Digits.

the last 2 digits of your student number = 30

#include

using namespace std;

void myFunc ();

void yourFunc ();

int myStudentIDLast2Digits = 30;

int w = myStudentIDLast2Digits + 1;

int x = myStudentIDLast2Digits + 2;

int y = myStudentIDLast2Digits + 3;

int z = myStudentIDLast2Digits + 4;

int main (){

int w = 111;

int x = 222;

int y = 333;

int z = 444;

// **1** //

cout << "myStudentIDLast2Digits =" << myStudentIDLast2Digits << endl;

cout << "**1** :";

cout << w << " " << x << " " << y << " " << z << endl; //prints w,x,y,z

myFunc ();

return 0;

}

void myFunc (){

int w = 100;

int x = 200;

// **2** //

cout << "**2** :";

cout << w << " " << x << " " << y << " " << z << endl;

yourFunc ();

}

void yourFunc (){

int x = 2000;

int y = 3000;

// **3** //

cout << "**3** :";

cout << w << " " << x << " " << y << " " << z << endl;

}

PART A ) Now assume that the source code given above is not a C++ program but a CDS++ program, where CDS++ is a language that is identical to C++ except that it is dynamically scoped. What will be printed in that case.

myStudentIDLast2Digits = _____

**1** :

**2** :

**3** :

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!