C
Chad
On the following sites faq
http://c-faq.com/strangeprob/ptralign.html
"By converting a char * (which can point to any byte) to an int * or
long int *, and then indirecting on it, you can end up asking the
processor to fetch a multibyte value from an unaligned address, which
it isn't willing to do. "
How can char * point to any byte, but int * can't? Can someone clarify
this?
Thanks
Chad
http://c-faq.com/strangeprob/ptralign.html
"By converting a char * (which can point to any byte) to an int * or
long int *, and then indirecting on it, you can end up asking the
processor to fetch a multibyte value from an unaligned address, which
it isn't willing to do. "
How can char * point to any byte, but int * can't? Can someone clarify
this?
Thanks
Chad