Question: 4) [2 pts] Consider the function definition void DoThis(int& alpha, int beta) { int temp; alpha = alpha + 10; temp = beta; beta =

4) [2 pts]

Consider the function definition

 void DoThis(int& alpha, int beta) { int temp; alpha = alpha + 10; temp = beta; beta = 99; } 

Suppose that the caller has integer variables gamma and delta whose values are 10 and 20, respectively. What are the values of gamma and delta after return from the following function call?

DoThis(gamma, delta); 

A) gamma = 10 and delta = 20

B) gamma = 20 and delta = 20

C) gamma = 10 and delta = 99

D) gamma = 20 and delta = 99

E) none of the above

5) [2 pts]

Given the declarations

struct SupplierType { int idNumber; string name; }; struct PartType { string partName; SupplierType supplier; }; PartType onePart; 

which of the following statements are valid?

A. PartType myparts[12];

B. SupplierType mysuppliers[45];

C. onepart = "bolt";

D. A and B above

E. A, B and C above

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!