Diffence arrays and  pointers?

Ø      Pointers are used to manipulate data using the address. Pointers use * operator to access the data pointed to by themØ      Arrays use subscripted variables to access and manipulate data.Array variables can be equivalently written using pointer expression.

Showing Answers 1 - 5 of 5 Answers

ab79

  • Oct 15th, 2005
 

to access data using pointers we use the *.

to access data stored in array we use indexes such as a[0].

  Was this answer useful?  Yes

Bobby

  • Sep 14th, 2006
 

It is important when ever anyone asks u

Array elements are always stored in contiguous memory locations.If they increment then they points to next of that array type ..

But when a pointer incremented always points to the immediately next location of its type

Bye,

Prabhu

  Was this answer useful?  Yes

stshekhar

  • Jun 9th, 2008
 

Arrays are constant pointer . that is we can not point array variable to another location but we can modifies the content of the array elemnt.
Pointers can be pointed to any address of same type.(Untill it does not declare const explicitly).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions