Which one is faster pointer or array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which one is faster pointer or array?

Why ?

5th Jul 2020, 11:23 AM
RESHMA R
2 Answers
5th Jul 2020, 11:47 AM
Nilesh
0
Arrays are just converted to pointers type. suppose a[4] is converted to *(a+4) at the time of compilation. So there will be time delay of use arrays rather than pointers but that time delay is negligible.
5th Jul 2020, 2:27 PM
uday kiran
uday kiran - avatar