c++ - Is it faster to read the first element of an array, or the 4000th? -
is there speed difference when reading first element of array rather 4000th? same goes other element in array.
mostly asking c++ language alright.
as array, array of integers.
if calling element in array , know exact position in array of element need retrieve, there no difference in speed. however, if there loop involved, or type of functionality searches through array specific value, speed impacted.
Comments
Post a Comment