Question: Function code: void Mystery 2 ( int z ) { z = 2 2 ; } When the following piece of code executes and calls

Function code:
void Mystery2(int z)
{
z=22;
}
When the following piece of code executes and calls the Mystery2 func
What is printed on the computer screen with the cout instruction after th
Please answer in the space provided after the cout instruction.
const int SIZE =3
int a2[SIZE]={9,5,8}
Mystery2(a2[1]);
cout a2[1];
// Answer:
Function code: void Mystery 2 ( int z ) { z = 2 2

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 Programming Questions!