Explain the pointer concept in c?

Showing Answers 1 - 2 of 2 Answers

rajat pandya

  • Aug 29th, 2006
 

pointers are the variables which an store address of another variable.pointers an b usd to access & manipulate data stored in the memory. ex.: int quantity, *p, n; quantity =123; p=&quantity; n=*p;here quantity & n as integer variable & p as pointer pointing to integer.2nd line: assign value of quantity & 3rd line: assign quantity to pointer variable.

  Was this answer useful?  Yes

subbu malepati

  • Sep 13th, 2006
 

Hi,Pointers are variables which store address of an varaiable.int a=2;int *ptr;ptr=&a;let "2002" be the address locn of a. then => p=2002, at the value at that addres is "2".For more info "Let us C" by Yashwant Kanethkar - good book for beginers.

  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