Question: For the given C code below, indicate the values assigned to each of the variable p, q, r, and s: int p, q, r, s;

For the given C code below, indicate the values assigned to each of the variable p, q, r, and s:

int p, q, r, s;

int i = 4; int j = 5;

{

int i = 6;

p = i + j;

}

q = i + j;

{

Int j=7;

i = 8;

r = i + j;

}

s = i + j;

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!