fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. float y;
  6. float *x=&y;
  7. int ar[1];
  8.  
  9. *x=1;
  10. printf("%f %f\n", *x,y);
  11. int *a= (int *) &y;
  12. printf("%d %d %d\n", *a, (int)y, (int)*x);
  13.  
  14. memcpy(&ar[0], &y, sizeof (float));
  15. printf("!!%d \n", ar[0]);
  16. double *m=(double*)&y, ada = 1, barsik = 1;
  17. *m=1;
  18.  
  19. printf("%f %f\n", *m, (double)y);
  20. printf("%lf %lf", ada, barsik);
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
1.000000 1.000000
1065353216 1 1
!!1065353216 
1.000000 0.000000
1.000000 1.000000