±Û¾´ÀÌ :¼Û¿µÀÍ 1999³â 6¿ù 12ÀÏ 13:55:27
Which of the following expressions results in a postive value
in x?(Choose one.)
-A. int ¡¿ = -1; ¡¿ = ¡¿ >>> 5;
B. int ¡¿ = -1; ¡¿ = ¡¿ >>> 32;
C. byte ¡¿ = -1; ¡¿ = ¡¿ >>> 5;
D. int ¡¿ = -1; ¡¿ = ¡¿ >> 5;
¿Ö ´äÀÌ AÀÎÁö °¡¸£ÃÄ ÁÖ½Ã¸é °¨»çÇÏ°ÚÀ¾´Ï´Ù
±×¸®°í
To place a 1 in the high-bit of an int named ref
that's set to 0x00000001,you can write:
Select the one right answer.
a) ref >> 31;
b) ref >>= 31;
c) ref << 31;
-d) ref <<= 31;
¿Ö ´äÀÌ dÀϱî¿ä???