Suppose x is a char variable with a value 'b'. What is the output of the statement System.out.println(++x)?
a. a
b. b
c. c
d. d
c. c
The ++ and -- operators can be applied to a char variable. ++x is preincrement. x is 'b' before ++x. After ++x, x becomes c.
Computer Science & Information Technology
You might also like to view...
Class Session uses module __________ to pickle the session dictionary and dump it into the session file.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
What is a service set identifier?
What will be an ideal response?
Computer Science & Information Technology
When you add an existing field, Access adds two controls. One is the bound control (a text box) tied to a database field. The second is an unbound control that labels the text box. The two controls are attached to each other
Indicate whether the statement is true or false
Computer Science & Information Technology
The ________ is used to select an entire record in Form view
Fill in the blank(s) with correct word
Computer Science & Information Technology