Home » » Pointer in C with Example

Pointer in C with Example

Pointer in C with Example

Pointer in C with Example

Pointer
     It is used to store the address of one variables to the another variable is called 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();
}

0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g