Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- int *ptr;
- ptr=(int *)malloc(sizeof(int)*10);
- printf("%X %d \n\n",ptr,sizeof(int));
- int i;
- for(i=0;i<5;i++)
- {
- scanf("%d",ptr+i);
- }
- for(i=0;i<5;i++)
- {
- printf("%X %d\n",(ptr+i),*(ptr+i));}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement