+ 1

Which is faster accessible array of N number or N no of variables of same type as of array in a loop ?

Time dependency of variables usage.

10th Oct 2019, 5:53 PM
Shivam Modi
Shivam Modi - avatar
4 odpowiedzi
+ 1
N no of Array means multiple Array and array of N number means single array. So think which will be faster.
10th Oct 2019, 8:00 PM
A͢J
A͢J - avatar
0
I think array of N number is faster to access than the N seperate variables. Because of the continuous memory allocation . Correct me if I am wrong.
12th Oct 2019, 4:33 AM
Shivam Modi
Shivam Modi - avatar