GeekInterview.com
Series: Subject: Topic:
Question: 481 of 587

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.
Asked by: Interview Candidate | Asked on: Mar 6th, 2005
Showing Answers 1 - 3 of 3 Answers
ab79

Answered On : Oct 15th, 2005

View all answers by ab79

to access data using pointers we use the *.

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

  
Login to rate this answer.
Bobby

Answered On : 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

  
Login to rate this answer.
stshekhar

Answered On : Jun 9th, 2008

View all answers by stshekhar

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).

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.