Which expression adds 1 to the element of array arrayName at index i?
a. ++arrayName[i].
b. arrayName++[i].
c. arrayName[i++].
d. None of the above.
A
Computer Science & Information Technology
You might also like to view...
The Increase List Level and Decrease List Level is located on the ________ tab
Fill in the blank(s) with correct word
Computer Science & Information Technology
public class IncrDemo { public static void main(String[] args) { int myVal, yourVal; myVal = 10; System.out.println("My initial value is " + myVal); yourVal = ++myVal; System.out.println("My new value is " + myVal); System.out.println("Your value is " + yourVal): } } ? Using the above code, describe how the three println output commands will appear. Explain the values stored in the variables during code execution.
What will be an ideal response?
Computer Science & Information Technology