Pointer
Pointer
Definition
Declaration
Operators
Intialization
Definition
Declaration
datatype * pointer-variable-name ;
1) int * a;
a is pointer variable of type integer .
2) char * b;
b is pointer variable of type character.
3) double * c;
c is pointer variable of type double
i) * ( indirection operator )
It is used to declare pointer variable as well as it returns the
value of the refernced variable.
as per definition
*a= *(&b);
*a = value at (address of b)= 5
printf(“%d”,*a) ; // 5
int main()
{
int *a; //ptr variable of type int
int b=456; // variable of type int