FOR QUESTIONS 1-5 REFER TO THE FOLLOWING VARIABLES AND INITIALIZATIONS:
int a = 2, b = -3, c = 2;
bool tval1 = false, tval2 = true;
char ch = ‘b’;
Assume each evaluation is legal and occurs immediately after this declaration.
What is the value of the following expression?
1. b + c * a
2. c % 5/2
3. -a * c++
4. tval1 && tval2
5. ch += 2
Answers
Answered by
4
Answer:
b+c*a = -3+2*2 = -3+4 = 1
c%5/2 = 2/2 = 1
-a*c++= -2 * 2= 4
tval1 && tval2 = false
ch+=2 = 'd'
Explanation:
Hope this will help you..Please mark this answer as the brainliest...
Answered by
0
Answer:
b + c * a = -3+2*2 = -3+4=1
c%5/2 = 0/2 = 0
-a*c++ = 2*2 = 4
tval1 && tval2 = false
ch+=2 = 'd'
Explanation:
Mark it as brainliest and follow me ...
Similar questions
English,
5 months ago
Math,
5 months ago
Math,
5 months ago
English,
10 months ago
Math,
10 months ago
Math,
1 year ago
Accountancy,
1 year ago
Social Sciences,
1 year ago