Which of the following performs the same operation?
Given the if/else statement:
if (a < 5)
b = 12;
else
d = 30;
a. a < 5 ? b = 12 : d = 30;
b. b < 5 ? b = 12 : d = 30;
c. a >= 5 ? d = 30 : b = 12;
d. d = 30 ? b = 12 : a = 5;
e. None of these
a. a < 5 ? b = 12 : d = 30;
Computer Science & Information Technology
You might also like to view...
Which mobile device feature allows information on a smartphone to be shown on a TV?
A) Multimode B) Tethering C) Wi-Fi D) Screen mirroring
Computer Science & Information Technology
Which of the following are valid specifiers for the printf statement?
a. %4c b. %10b c. %6d d. %8.2d e. %10.2e
Computer Science & Information Technology