On 02/24/2014 11:05 AM, j.e.ha...@gmail.com wrote:
> typedef struct {
>   int value;
> } Number;
> 
>   Number *o;
>   o = malloc(sizeof(*o));
>   o->value=3;
>   printf("o<%p>, o->value<%p>\n", o, &o->value);
> 
> o<0x9fe5008>, o->value<0x9fe5008>
> 
> Is the compiler borked?

Why would you think that? The address of the start of your malloc'ed
structure is the same as the address of the first element.  Surely this
is logical?  And of course all this is quite off topic.


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to