see dipankar, i hv 64 bit OS nd processor bt i dont know abt the compiler.
nd yeah size of int is 4 bytes. so tell me where im interpreting wrong?

Shashank Jain
3rd year, Computer Engg.
Delhi College of Engineering



On Thu, Aug 4, 2011 at 11:16 AM, Dipankar Patro <dip10c...@gmail.com> wrote:

> This has been a hot topic of discussion for a long time. But I found there
> are two things to look into it:
>
> 1. a 64 bit OS is one, which has 64 bit address handling capacity. and a
> 64bit processor is one which can perform operations on 64 bit data. A
> general concept that actually gets overlooked by many. Even I was confused
> with differences of 64 bit OS and Processors a while back.
>
> 2. if a compiler by it's own doesn't support 64 bit, it might be the case
> that even if you run on a 64 bit OS, size of int will be 4 bytes (32 bit).
>
> I think the best way to check out is to make a code on 64 bit compiler. If
> somebody has tried it please share the results.
>
> On 4 August 2011 10:38, Tushar Bindal <tushicom...@gmail.com> wrote:
>
>> never assume that he compiler is same as the OS you run. it may be that
>> you are running a 32-bit compiler
>>
>> I think pointers have size 4bytes on 8 byte compiler also - not sure.
>> someone please correct me.
>>
>>
>> On Thu, Aug 4, 2011 at 10:26 AM, Shashank Jain <shashan...@gmail.com>wrote:
>>
>>> the size of a pointer is showing 4 bytes in my 64-bit OS, which should
>>> have been 8 bytes. Correct me where i am wrong?
>>>
>>> Shashank Jain
>>> 3rd year, Computer Engg.
>>> Delhi College of Engineering
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Tushar Bindal
>> Computer Engineering
>> Delhi College of Engineering
>> Mob: +919818442705
>> E-Mail : tushicom...@gmail.com
>> Website: www.jugadengg.com
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
>
> ___________________________________________________________________________________________________________
>
> Please do not print this e-mail until urgent requirement. Go Green!!
> Save Papers <=> Save Trees
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to