fork download
  1. #include <stdio.h>
  2. #include<stdlib.h>
  3. #include<memory.h>
  4. int main(void) {
  5. double *single= (double *) malloc(sizeof(double));
  6. *single=5.6;
  7. double **ptr= (double **)malloc(sizeof(double* ));
  8. ptr=&single;
  9. printf("%lf",**ptr);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 1852KB
stdin
Standard input is empty
stdout
5.600000