Saturday, 7 December 2013

More concept on pointer

Let us see the example carefully:
main()
{
int a=10;
int *ptr;
ptr=&a;
printf("%d%d\n",a,*ptr);
*ptr=25;
printf("%d%d\n",a,*ptr);
}

Note:
        *ptr is an alias to a.
Try it by your self

No comments: