#include<stdio.h>
#include<stdlib.h>
struct disfeet
{
int *f;
};
struct distance
{
struct disfeet *d;
};
int main()
{
struct distance *d1;
d1=(struct distance *)malloc(sizeof(struct distance));
d1->d=(struct disfeet *)malloc(sizeof(struct disfeet));
d1->d->f=(int *)malloc(sizeof(int));
printf(“enter distance\n”);
scanf(“%d”,&d1->d->f);
printf(“distance is %d feet.\n\n”,d1->d->f);
return 0;
}