What is the output of the following code:
int r = 3, s = 2, t = 4;
if ((r = = 4) || !(s < t))
r = r – 1;
else
r = r * 2;
r = r + t;
cout << r;
a) 6
b) 10
c) 5
d) 4
b) 10
You might also like to view...
You can select more than one worksheet at a time to print
Indicate whether the statement is true or false
The phrase “digital divide” refers to the situation where
a. some people have access to information technology and others do not. b. users of Macintosh computers are at a disadvantage compared to users of Windows computers. c. only stockholders in high-tech companies can get rich in the new economy. d. the U.S. government prevents information technology from being exported to “unfriendly” countries. e. the prices of computers are kept artificially high in order to keep them out of the hands of people in Third World countries.
Answer the following questions true (T) or false (F)
1. An empty statement is defined as a loop that runs forever. 2. An object of class A is an instance of class A.
A double-layer BD has the greatest capacity of optical discs
Indicate whether the statement is true or false