Which pair of values for a and b will the following code NOT print any value? #include using namespace std; int main(void) { int a,b; a = b= switch(a*b) case 0: cout<< a - b; a--; break; case 2:break; cout<«a+b; break; case 4: b = a-b; a++; cout<< a / b; case 6: cout<< a b; case 8: cout<< b - a; break; (a) a = 2, b = 4 (b) a = 4, b = 1 (c) a = 3, b = 0 (d) a = 1, b = 2 (e) a = 3, b = 2 Lütfen birini seçin: i.e ii.b iii.a ivd V.C

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Topic Video
Question

c+++

Which pair of values for a and b will the following code NOT print any value?
#include <iostream>
using namespace std;
int main(void)
{
int a,b;
_?
b =
switch(a*b)
{
case 0: cout<< a - b;
a
a-;
break;
case 2:break; cout<< a + b;
break;
case 4: b = a-b;
a++;
cout<< a / b;
case 6:
cout<< a* b;
case 8: cout<< b - a;
break;
}
(a) a = 2, b = 4
(b) a = 4, b = 1
(c) a = 3, b = 0
(d) a = 1, b = 2
(e) a = 3, b = 2
Lütfen birini seçin:
i.e
ii.b
iii.a
iv.d
V.C
OOO
Transcribed Image Text:Which pair of values for a and b will the following code NOT print any value? #include <iostream> using namespace std; int main(void) { int a,b; _? b = switch(a*b) { case 0: cout<< a - b; a a-; break; case 2:break; cout<< a + b; break; case 4: b = a-b; a++; cout<< a / b; case 6: cout<< a* b; case 8: cout<< b - a; break; } (a) a = 2, b = 4 (b) a = 4, b = 1 (c) a = 3, b = 0 (d) a = 1, b = 2 (e) a = 3, b = 2 Lütfen birini seçin: i.e ii.b iii.a iv.d V.C OOO
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT