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