basic question about pointers

Started by
1 comment, last by airseb 19 years, 3 months ago
Hi everybody ! I just want to know what is the fastest between accessing array's datas or pointer's datas ?
Advertisement
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.
ok thank you !

This topic is closed to new replies.

Advertisement