[ create a new paste ] login | about

Link: http://codepad.org/WaunziA8    [ raw code | output | fork ]

appunti2 - C, pasted on Apr 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
int main (int argc, char *argv[])
{
    double a = 1.1;
    double b = 2.2;
    void * A = (void *) &a;
    void * B = (void *) &b;
    ptrdiff_t s = (A - B);
    printf ("differenza: %i\n", s);
    return 0;
}


Output:
1
differenza: 8


Create a new paste based on this one


Comments: