Discussion: sizeof(ptr) = ?
Afficher un message
Vieux 22/10/2007, 10h19   #7
Road Tang
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sizeof(ptr) = ?

William Xu wrote:

> Road Tang <roadtang@gmail.com> writes:
>
>> it's implementation defined.
>> e.g
>>
>> on 32-bit machine, sizeof(ptr) may be 32

>
> Then, is it safe to say that sizeof(ptr) <= 32 ?


No, I did't find the Standard have such rules about it.
I just write that number for example.

>> and 64-bit machine it returns 64.

>
> Similarly, sizeof(ptr) <= 64 ?
>

You like this apply? but I'm still not sure.


--
C FAQ: http://c-faq.com/
  Réponse avec citation
 
Page generated in 0,05168 seconds with 9 queries