Connecting Tech Pros Worldwide Forums | Help | Site Map

array or pointer is faster access?

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 17 '07
array or pointer is faster access?
i feel array is faster, if any conflict please help me

Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,370
#2: Jul 17 '07

re: array or pointer is faster access?


An array is not a pointer.

An array is a built-in container of variables.

A pointer is a variable that contains an address.

You cannot compare two different things.

Maybe you could expand your question a little so I could understand better.
ilikepython's Avatar
Expert
 
Join Date: Feb 2007
Posts: 839
#3: Jul 17 '07

re: array or pointer is faster access?


Quote:

Originally Posted by weaknessforcats

An array is not a pointer.

An array is a built-in container of variables.

A pointer is a variable that contains an address.

You cannot compare two different things.

Maybe you could expand your question a little so I could understand better.

This is the articles section. It should be moved to the forum.
sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#4: Jul 17 '07

re: array or pointer is faster access?


Moved .
Reply


Similar C / C++ bytes