What is the representation of the third element in an array called a?
a. a[2]
b. a(2)
c. a[3]
d. a(3)
a. a[2]
You might also like to view...
Suppose we would like to swap the elements at index i and index j in an array. Does the following code work? If so, explain how. If not, explain why it fails.
What will be an ideal response? ``` array[i] = array[j]; array[j] = array[i]; ```
Which function name below is invalid?
A. setName B. _CalculateAverage C. 4_Names D. both B and C
How many times will this for loop execute? (Note: i is an int.)
```for(i = 0; i < 10; ++i) ``` A. 0, the loop will not execute B. 9 C. 10 D. The loop is not written correctly. It would not compile.
The _____________ operator returns false if the left operand is greater than the right oper- and.
a) == b) < c) <= d) All of the above