posted 21 years ago
just when I'm starting to feel confortable with shifting, there's my friend Dan with his excellent questions... :roll:
What is the result of attempting to compile and run the above program?
a. Prints: -4
b. Prints: -3
c. Prints: -2
d. Prints: 0
e. Prints: 1
f. Prints: 127
g. Prints: 508
h. Runtime Exception
i. Compiler Error
j. None of the Above
It prints -4. I reached til 508, but now this 508 int value has to be chopped off to fit in a byte, right? How do you guys do that?..
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury