Now Place:2uzhan.com » array of capacity

array of capacity

Java Programming @ December 4, 2005   Views:0

hi, i was going throuh java test examples and i have question from it. if data is a cicular array of capacity elements, and rear is an index into that array, what is the formula for the index after rear?

A. (rear%1)+CAPACITY
B. rear % (1+CAPACITY)
c. (rear+1)%(CAPACITY)


C. (rear+1)%(CAPACITY)

- petter

© 2018 2uzhan.com Contact