What Is Pointer In C Programming Language

What Is Pointer In C Programming Language

What Is Pointer In C Programming Language

What Is Pointer In C Programming Language




Pointer
     It is used to store the address of one variable to another variable is called a pointer.
     * - pointer operator
     & - address operator

Program :



#include
#include
void main()
{
int a,*b;
clrscr();
printf("Enter the value of a is:");
scanf("%d",&a);
b=&a;
printf("\n The value pf a is%d",a);
printf"\n The address value of &a is%u",&a);
printf("\n The copy address value of &a to b is %u",b);
printf("\n The copy value of a to *b is %d",*b);
getch();
}

Post a Comment

1 Comments