Which of the following assignment statements is correct?
a. char c = 'd';
b. char c = 100;
c. char c = "d";
d. char c = "100";
a. char c = 'd';
b. char c = 100;
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...
Which of the following overloadings will be invoked by this call? g(1.0,2.0);
a. int g(int count, double value); b. void g(double value, int count); c. void g(int value, int count); d. Neither, the compiler cannot decide which of these to use.
Match the following input devices with their use:
I. gamepad II. OCR III. stylus IV. sensor V. biometric devices A. converts printed documents into text B. detects the status of something and responds to changes in a predictable way C. used to match unique characteristics of each user D. combines several modes of input simultaneously E. a penlike device used to tap the screen
Decorative formats such as outlines, shadows, text glow and colors are called ________ ________
Fill in the blank(s) with correct word
Modules should:
a. Have one function. b. Have one entrance and one exit. c. Be short and easily read. d. All of the above. e. a and c.