Question: 1. int a = 10, b, c, d; a. compute d = b = c = a b. compute d = a / 3 c.
1. int a = 10, b, c, d;
a. compute d = b = c = a
b. compute d = a / 3
c. compute d = a%3
2. int a = 10, b;
a. compute b = a/3
3. What is y displayed in the following code?
#include
int main()
{ int x = 1; int y = x = x - 1;
cout << "y is " << y;
return 0;
}
4. int a =10, b = 20; c = 10, d;
a. compute d = (++a) + b c
b. compute d = a (b--) + (++c)
5. int a = 10, b = 11, c = 167, d; (Take 8-bit binary representation)
a. compute d = a&b
b. compute d = a|(b&c)
c. compute d = (a==b)
d. compute d = (a>=b)
e. compute d = ((a&b)|c)
f. compute d = (a&(~b))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
