Question: Example: What are the final values of the variables listed below after all the statements are executed. #define SQRT(x) x*x #define P(x, y) (x >

Example: What are the final values of the variables listed below after all the statements are executed.

#define SQRT(x) x*x

#define P(x, y) (x > y) ? x + 2 : y * 3

#define Q(x, y) x / y

#define NN 100

int a, b, d, f, g, h, n, aa, bb = 90;

double c, e, m;

int main(void)

{

int i = 5, j = -6, k = 9, z = 10, x = 1, y = 20;

a = NN / SQRT(5);

b = i < 2* j i || i >=j;

c = (NN - 5) / 2;

d = P(i, -2*i);

e = k = --i;

f = j ? 20 : 5 + z;

g = (k == i j + 5) * i;

h = Q(j + 20, SQRT(i + 1));

m = NN && z + 2 ;

n = z++ - j; x = !NN || k * 3;

y %= (int)(50.0/i);

return(0); }

a = ------- b = -------- c = ------- d = ------- e = -------- f = ------- g = ------- h = -------- m = ------- n = ------- i = -------- j = ------- n = ------- x = -------- y = ------- z = -------- aa = -------- bb = -------

please show step by step

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!