Pointer/address type casting
Posted
by gcc
on Stack Overflow
See other posts from Stack Overflow
or by gcc
Published on 2010-04-29T00:05:03Z
Indexed on
2010/04/29
0:17 UTC
Read the original article
Hit count: 263
Filed under:
c
I have the following variables:
char *p;
int l=65;
Why do the following casts fail?
(int *)p=&l;
and:
p=&((char) l);
© Stack Overflow or respective owner