/* dereferencing pointer variable */
main()
{
a=56;
b=8.5;
*ptr1=&a;
*ptr2=&b;
printf("value of ptr1= Address of a=%p\n",ptr1);
printf("value of ptr2= Address of b=%p\n",ptr2);
printf("Value of a=%d, %d, %d \n",a,*ptr1,*(&a));
printf("Value of b=%d, %d, %d \n",b,*ptr2,*(&b));
0;
}
|