At 00:10 2006-08-19, VENUGOPAL wrote:
For knowing the sizes of different data types .,u can use the sizeof() operator.
____________________________________________________
Data type           C                C++             Java
____________________________________________________
int                     2                 2                  4
char                  1                 1                  2
long                   4                 4                  8
float                   4                 4                  8
double               8                 8                  16
____________________________________________________

the above table is NOT true for my system/compiler (and I suspect for most people out there these days)
It's one of the reasons I refuse to get into such discussions except to say it's not something you need to know very often.  In THIS case however, the table above is just     W R O N G ! ! ! ! !

 
        sizes is not different for signed int and unsigned int. i.e., size is just two bytes for an int datatype but the only difference between a signed int and unsigned is the range of values for the variable.
      The values we can store in an signed int is -32768 to +32767 and the values we can store in an unsigned int is 0 to + some 65000(i don't remember the exact value).This means we can store only positive values in an unsigned and we can store both positive and negative values in unsigned int.
____________________________________________________
     There is no concept of signed and unsigned in java.
 
 
I hope u got my answer right.
All the best.
 
Ur Friend........
 K.VENU GOPAL RAO


Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
              "There oughta be a law" __._,_.___

To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.




SPONSORED LINKS
C and c++ Computer programming languages Java programming language
Basic programming language Programming languages


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to