Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable
shows 4 bytes only. So how is dat possible acc. to what u said earlier?

Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering



On Thu, Aug 4, 2011 at 7:33 PM, Ashish kumar Jain akjlucky4...@gmail.comwrote:

 Just check if you have installed DEV Cpp win32 installation or not.That
 will confirm the usage and observation.As per the Dev cpp page it is
 available in 32 bit exe only.


 On Thu, Aug 4, 2011 at 7:21 PM, Dipankar Patro dip10c...@gmail.comwrote:

 Also, you must remember that 64 OS can never run 32 bit Processors, since
 it will require a 64 bit CPU to produce a 64bit address format


 On 4 August 2011 19:19, Dipankar Patro dip10c...@gmail.com wrote:

 Yeah.

 On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the size
 is bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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




 --

 ___

 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.




 --
 Regards,
 Ashish


  --
 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.



Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
sorry i read it wrong. u are right!


Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering



On Sat, Aug 6, 2011 at 6:51 PM, Shashank Jain shashan...@gmail.com wrote:

 dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable
 shows 4 bytes only. So how is dat possible acc. to what u said earlier?

 Shashank Jain
 IIIrd year
 Computer Engineering
 Delhi College of Engineering



 On Thu, Aug 4, 2011 at 7:33 PM, Ashish kumar Jain 
 akjlucky4...@gmail.comwrote:

 Just check if you have installed DEV Cpp win32 installation or not.That
 will confirm the usage and observation.As per the Dev cpp page it is
 available in 32 bit exe only.


 On Thu, Aug 4, 2011 at 7:21 PM, Dipankar Patro dip10c...@gmail.comwrote:

 Also, you must remember that 64 OS can never run 32 bit Processors, since
 it will require a 64 bit CPU to produce a 64bit address format


 On 4 August 2011 19:19, Dipankar Patro dip10c...@gmail.com wrote:

 Yeah.

 On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the
 size is bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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




 --

 ___

 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.




 --
 Regards,
 Ashish


  --
 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.



Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
*sizeof* is compiler and processor dependent for reasons of both
architectural limitations and efficiency.

Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering



On Sat, Aug 6, 2011 at 6:52 PM, Shashank Jain shashan...@gmail.com wrote:

 sorry i read it wrong. u are right!


 Shashank Jain
 IIIrd year
 Computer Engineering
 Delhi College of Engineering



 On Sat, Aug 6, 2011 at 6:51 PM, Shashank Jain shashan...@gmail.comwrote:

 dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable
 shows 4 bytes only. So how is dat possible acc. to what u said earlier?

 Shashank Jain
 IIIrd year
 Computer Engineering
 Delhi College of Engineering



 On Thu, Aug 4, 2011 at 7:33 PM, Ashish kumar Jain akjlucky4...@gmail.com
  wrote:

 Just check if you have installed DEV Cpp win32 installation or not.That
 will confirm the usage and observation.As per the Dev cpp page it is
 available in 32 bit exe only.


 On Thu, Aug 4, 2011 at 7:21 PM, Dipankar Patro dip10c...@gmail.comwrote:

 Also, you must remember that 64 OS can never run 32 bit Processors,
 since it will require a 64 bit CPU to produce a 64bit address format


 On 4 August 2011 19:19, Dipankar Patro dip10c...@gmail.com wrote:

 Yeah.

 On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the
 size is bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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




 --

 ___

 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.




 --
 Regards,
 Ashish


  --
 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.



Re: [algogeeks] pointer size

2011-08-04 Thread Dipankar Patro
there absolutely nothing wrong in your interpretation.
here is a link that might help : http://www.unix.org/whitepapers/64bit.html


On 4 August 2011 11:18, Shashank Jain shashan...@gmail.com wrote:

 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.comwrote:

 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.comwrote:

 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.




-- 
___

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.



Re: [algogeeks] pointer size

2011-08-04 Thread Shashank Jain
man this is too big of a page to go thru...
so tell as both (OS nd pro) are 64 bit why is ptr size 4 bytes?
nd also does it depend on all 3 : OS, processor, compiler ?

Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering



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

 there absolutely nothing wrong in your interpretation.
 here is a link that might help :
 http://www.unix.org/whitepapers/64bit.html


 On 4 August 2011 11:18, Shashank Jain shashan...@gmail.com wrote:

 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.comwrote:

 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.comwrote:

 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.




 --

 ___

 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.



Re: [algogeeks] pointer size

2011-08-04 Thread Dipankar Patro
For simple answer: yes.
All must be compatible with 64 bit data/address handling.

On 4 August 2011 12:02, Shashank Jain shashan...@gmail.com wrote:

 man this is too big of a page to go thru...
 so tell as both (OS nd pro) are 64 bit why is ptr size 4 bytes?
 nd also does it depend on all 3 : OS, processor, compiler ?

 Shashank Jain
 IIIrd year
 Computer Engineering
 Delhi College of Engineering



 On Thu, Aug 4, 2011 at 11:57 AM, Dipankar Patro dip10c...@gmail.comwrote:

 there absolutely nothing wrong in your interpretation.
 here is a link that might help :
 http://www.unix.org/whitepapers/64bit.html


 On 4 August 2011 11:18, Shashank Jain shashan...@gmail.com wrote:

 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.comwrote:

 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.comwrote:

 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.




 --

 ___

 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.




-- 
___

Please 

Re: [algogeeks] pointer size

2011-08-04 Thread N1teesh
So if either of the OS , Compiler , Processor are 32 Bit , then the size is 
bound to be 4 bytes?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.
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.



Re: [algogeeks] pointer size

2011-08-04 Thread Dipankar Patro
Yeah.

On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the size is
 bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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.



Re: [algogeeks] pointer size

2011-08-04 Thread Dipankar Patro
Also, you must remember that 64 OS can never run 32 bit Processors, since it
will require a 64 bit CPU to produce a 64bit address format

On 4 August 2011 19:19, Dipankar Patro dip10c...@gmail.com wrote:

 Yeah.

 On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the size
 is bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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




-- 
___

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.



Re: [algogeeks] pointer size

2011-08-04 Thread Ashish kumar Jain
Just check if you have installed DEV Cpp win32 installation or not.That will
confirm the usage and observation.As per the Dev cpp page it is available in
32 bit exe only.

On Thu, Aug 4, 2011 at 7:21 PM, Dipankar Patro dip10c...@gmail.com wrote:

 Also, you must remember that 64 OS can never run 32 bit Processors, since
 it will require a 64 bit CPU to produce a 64bit address format


 On 4 August 2011 19:19, Dipankar Patro dip10c...@gmail.com wrote:

 Yeah.

 On 4 August 2011 12:14, N1teesh nitee...@gmail.com wrote:

 So if either of the OS , Compiler , Processor are 32 Bit , then the size
 is bound to be 4 bytes?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/vsUrO_BCMXAJ.

 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




 --

 ___

 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.




-- 
Regards,
Ashish

-- 
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.



Re: [algogeeks] pointer size

2011-08-03 Thread Tushar Bindal
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.



Re: [algogeeks] pointer size

2011-08-03 Thread Shashank Jain
tush, u hv ny idea dev c uses which compiler?

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



On Thu, Aug 4, 2011 at 10:38 AM, Tushar Bindal tushicom...@gmail.comwrote:

 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.comwrote:

 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.


-- 
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.



Re: [algogeeks] pointer size

2011-08-03 Thread Dipankar Patro
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.comwrote:

 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.



Re: [algogeeks] pointer size

2011-08-03 Thread Shashank Jain
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.comwrote:

 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.