#include <stdio.h>
#include <stdlib.h>


int main()
{
 double *p1,*p2;

 p1=(double *)malloc(sizeof(p1));
 p2=(double *)malloc(sizeof(p2));

 if(p1 != NULL && p2 != NULL)
  {
   *p1=5.15;
   printf("p1 = %f\n",*p1);

   *p2=10.99;
   printf("p2 = %f\n",*p2);
   printf("p1 = %f\n",*p1);
  }
 return 0;
}
