fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (int argc, char *argv[])
  4. {
  5. double a = 1.1;
  6. double b = 2.2;
  7. void * A = (void *) &a;
  8. void * B = (void *) &b;
  9. size_t s = abs (A - B);
  10. printf ("distanza: %i\n", s);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
distanza: 8