Should int *p be long int *p instead?

I'm learning c by reading K&R and doing the exercises. I'm now in chapter 5 which deals with pointers. I don't understand why the statement:

int *p;

is not:

long int *p;

since *p contains an address and there is no guarantee that a variable of type int will be large enough to hold a large address. Or is there?

5
задан grok12 18 May 2011 в 21:46
поделиться