#include<stdio.h>
int main()
{
int *ptr , a=2 ;
ptr=&a;
printf("%d\n",*ptr);
printf("%d\n",ptr);
printf("%d\n",&a);
printf("%d\n",*(&a));
int arr[3]={1,2,3};
printf("%d\n" ,arr);
printf("%d\n" ,*arr);
printf("%d\n" ,*(arr+1));
printf("%d\n" ,(arr+1));
printf("%d\n" ,*(arr+2));
printf("%d\n" ,(arr+2));
return 0;
}
//pointer seen
No comments:
Post a Comment