C
Christopher Benson-Manica
int main( void ) {
int foo[10], *bar=foo, *baz=foo+1;
int quux=baz-bar;
return 0;
}
Is the type of quux (that is, int) strictly correct? Or is there a
type similar to size_t that is more appropriate for the difference of
two pointers?
int foo[10], *bar=foo, *baz=foo+1;
int quux=baz-bar;
return 0;
}
Is the type of quux (that is, int) strictly correct? Or is there a
type similar to size_t that is more appropriate for the difference of
two pointers?