1. Suppose that x, y, z, and w are int variables. What is stored in x, y, z, and w after the following statements execute? (3, 6)
x = 9;
y = x - 4;
z = (y + 7) % 6;
w = (x * z) / y - 3;
z = w + (x - y + 2) % x)
The values are
W = -3
X = 9
Y = 5
X = 3
Source Code
#include <stdio.h>
int main()
{
int w,x,y,z;
x = 9;
y = x - 4;
z = (y + 7) % 6;
w = (x * z) / y - 3;
z = w + ((x - y + 2) % x);
printf(" W = %d\n X = %d\n Y = %d\n X =
%d\n",w,x,y,z);
return 0;
}
Screenshot
please give a upvote if u feel helpful.
Get Answers For Free
Most questions answered within 1 hours.