A contiguous segment of an array is specified using two subscripts, lower and upper. Which expression gives the position of the element in the middle of the array segment?
A) lower + upper / 2
B) lower /2 + upper
C) (upper - lower)/2
D) lower + (upper - lower) / 2
D) lower + (upper - lower) / 2
Computer Science & Information Technology
You might also like to view...
Which of the following is another name for a video accelerator?
A) Video processor B) VRAM C) Video ROM shadowing D) AGP
Computer Science & Information Technology
If a local variable in a method has the same name as a variable in the main program, what will occur?
a) an error is generated b) the variable in the main program is "hidden" until the method is finished executing c) the variable in the main program will override the variable from the method d) None of the above.
Computer Science & Information Technology