#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int *ptr;
ptr=(int*)malloc(sizeof(int));
printf("input an integer value: ");
scanf("%d",ptr);
printf("you entered: %d.\n",*ptr);
free(iVar);
}
#include <stdlib.h>
int main(void)
{
int *ptr;
ptr=(int*)malloc(sizeof(int));
printf("input an integer value: ");
scanf("%d",ptr);
printf("you entered: %d.\n",*ptr);
free(iVar);
}
No comments:
Post a Comment