Friday, 4 August 2017

* Operator Pointer

Pointer is a special type of variable which hold address of a location in memory. * symbol is use to make pointer. You can manipulate any variable data though pointer from other function. Change will be permanent when it been done with pointer because pointer has actual physical location of a variable.

You can manipulate a variable data using pointer. By
  • First make a pointer variable
  • Assign address of variable to pointer
  • Access variable data though * operator

* Operator

Is use to make an pointer variable and access actual data of a variable with pointer.

void main()
     int i=10;
     int *p=&i;


No comments:

Post a Comment