P
pete
Vijay said:As you can make out from my line above, my English is
still in improving phase. I did not understand your
statement. Is it a compliment?
Yes.
Vijay said:As you can make out from my line above, my English is
still in improving phase. I did not understand your
statement. Is it a compliment?
Vijay said:[I wrote:][Regarding http://www.geocities.com/vijoeyz/faq/c/sizeof_impl.txt,
where the macro
#define sizeof_type( type ) (size_t)((type*)0 + 1 )
appears]
This invokes undefined behaviour: pointer arithmetic on null pointers
is not defined. Even if the arithmetic were guaranteed to work, the
conversion from pointer to integer is implementation-defined and may
not give the results you expect.
How can this be implemented, then?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.