Which of the following statements are the same? (A) x -= x + 4 (B) x = x + 4 – x (C) x = x - (x + 4)
A.(A), (B), and (C) are the same
B.(B) and (C) are the same
C.(A) and (C) are the same
D.(A) and (B) are the same
查看答案
Which of the following assignment statements is incorrect?
A.i = j = k = 1;
B.i = 1; j = 1; k = 1;
C.i = 1 = j = 1 = k = 1;
You can always assign a value of long type to a variable of int type without loss of precision.
A.true
B.false
You can always assign a value of int type to a variable of long type without loss of information.
A.true
B.false
Which of these data types requires the most amount of memory?
A.byte
B.short
C.long
D.int