   How many bytes is float?
  ? 
  sizeof(float) ;  Usually 32 bits (4 bytes).When in doubt, check sizeof(float).   Kami no Itte ga ore ni zettai naru! ;  It dependends on the precision.It can be 16-bit (float) or 32-bit (double). Anyone correct me if i''m wrong. ;quote:Original post by Blue Phoenix  It dependends on the precision.It can be 16-bit (float) or 32-bit (double). Anyone correct me if i''m wrong.As others have said, the only definitive answer is sizeof(float).  But I believe that it''s often 32-bit for float, and 64-bit for double.John B ;  sizeof() only gives you the size of the object in terms of char, sizeof(char) is always one.  You should check    std::numeric_limits<char>::digits    to work out the number of bits in a char   [edited by - Jingo on February 15, 2004 9:58:28 AM];  DUDE! You have 6 questions shown on the page of this forum RIGHT NOW, and 4/6 could have been easily answered by a forum search, or by using Google Groups! And 1 of the remaining two was a problem whose solution you found yourself (one has to wonder if you had really tried enough before posting).The sum of the views for those 6 questions is 448! That''s a lot of time spent on reading trivial questions.Final advice: read the C++ FAQ Lite. It''s a good investment.Cédric ;quote:Original post by Cedric  DUDE! You have 6 questions shown on the page of this forum RIGHT NOW, and 4/6 could have been easily answered by a forum search, or by using Google Groups! And 1 of the remaining two was a problem whose solution you found yourself (one has to wonder if you had really tried enough before posting).The sum of the views for those 6 questions is 448! That''s a lot of time spent on reading trivial questions.Final advice: read the C++ FAQ Lite. It''s a good investment.Cédric   You sound like me. ;quote:Original post by The C modest god  ?   Do we have twenty questions to guess which language and platform you''re using?;  Be careful all: in java, a char is 2 bytes.Java of course has a "byte" keyword to represent the 8 bit entity.  Java focuses on (unicode, etc) 16 bit versions of characters, "chars"...But yes, in C/C++, a byte is 8 bits wide.