All pastes #845422 Raw Copy code Copy link Edit

Mine

public unlisted text v1 · immutable
#845422 ·published 2008-01-07 18:02 UTC
rendered paste body
#include <stdio.h> 
int main(void) {
    int x[2]={22,7};
    void *k,*j;
    printf("Size of an int is %d\n", sizeof(x[0]));
    printf("Distance between x[0] and x[1] is %d\n", &x[1] - &x[0]);
    k=&x[1];
    j=&x[0];
    printf("Argh! k - j = %d\n",k-j);
    //printf("@ %X, %X\n",x,*(x+1));
    return 0;
}