Mar
22
#include<stdio.h>
void main(){
int *ptr;
ptr=(int*) malloc(sizeof(int));
printf(“sizeof(int)= %d\n”,sizeof(int));
printf(“ptr= %u\n”,ptr);
//*ptr=30;
printf(“Enter a Number: “);
scanf(“%d”,ptr);
printf(“*ptr= %d\n”,*ptr);
}
Leave a Reply
No Comments