Wednesday, April 18, 2012

[Cpp-Programming] what's the difference of int and long on 32bit system?

In gcc/g++, int is 4 bytes, so is long. Then what's the difference between the two types? Or why defining long type as 4 bytes, if there's already 4-byte int type?

--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

0 Comments:

Post a Comment

<< Home