Which of the following assignment statements is correct?
a. char c = 'd';
b. char c = 100;
c. char c = "d";
d. char c = "100";
ab Choice (B) is also correct, because an int value can be implicitly cast into a char variable. The Unicode of the character is the int value. In this case, the character is d (see Appendix B).
You might also like to view...
The theme selected for a presentation controls the colors used in tables and charts, but not graphics and SmartArt
Indicate whether the statement is true or false
A large collection of e-mail addresses used for distributing information is called an e-list
Indicate whether the statement is true or false
Worksheets CANNOT be exported as XML files
Indicate whether the statement is true or false.
What will be the outcome of the following query? SELECT FLOOR(2.7) FROM dual;
A. 2.8 B. 2.6 C. 3 D. 2