printf("%d",((int)((int *)0 + 1))*8);
o/p :: 32/64
On Thu, Aug 11, 2011 at 5:14 PM, sukran dhawan <[email protected]>wrote:
> thanks
>
>
> On Thu, Aug 11, 2011 at 5:02 PM, Aditya Virmani
> <[email protected]>wrote:
>
>> u can never find tht thru ur prgm...sizeof int is compiler dependant
>> whether its 32/64 bit...
>>
>> On Thu, Aug 11, 2011 at 4:35 PM, sukran dhawan <[email protected]>wrote:
>>
>>> how to determine whether the machine is a 32 bit or 64 bit using a c
>>> program?
>>> is it by sizeof(int) * 4?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.