Pointer as Functions

How a value can be accessed through an address?How pointers can be used a funtions?

Questions by ashish verma

Showing Answers 1 - 3 of 3 Answers

PPreksha

  • Dec 15th, 2009
 

A value can be accesed through its address by use of pointers..
Assigning any element as

int x=10;
int *p=&x;

assigns the address of 'x' to pointer 'p'

A pointer can be used as a function by using it as

int (*p) (int, int)
{/// Function body}

the address of code is stored in the pointer

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