basic question about pointers
Hi everybody !
I just want to know what is the fastest between accessing array's datas or pointer's datas ?
An array has an access time of O(c), which means it's constant regardless of how many items are in the array. Considering an array is basically just continguous blocks of memory, with the name of the array acting as a pointer to the beginning of the first block, there is no difference. Unless I missed your question.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement