Suppose i is an int type variable. Which of the following statements display the character whose Unicode is stored in variable i?
a. System.out.println(i);
b. System.out.println((char)i);
c. System.out.println((int)i);
d. System.out.println(i + " ");
b. System.out.println((char)i);
(char)i casts a number into a character.
You might also like to view...
Which of the following is a PHP function used to declare constants?
a. var b. define c. echo d. pushpin
The function copyHalf copied the top half of the picture into the bottom half. Write a new function copyUpHalf that copies the bottom half of the picture into the top.
What will be an ideal response?
Where is the error?
``` class B { public: B(int i): x(i) {} // . . . private: int x; }; class D : public B { public: D() { /* . . . */ } private: // . . . }; int main() { D y; return 0; } ```
The binary system uses the numbers ________ to represent digits
Fill in the blank(s) with correct word