length of a string

Started by
9 comments, last by hello_there 20 years, 6 months ago
quote:Original post by hello_there
Is a char always 1 byte on any computer?


Yes.

By the way, C++ defines 'byte' as the size of one char, not the other way round.

It says nothing about the number of bits, though.

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

[edited by - Fruny on October 6, 2003 3:16:09 AM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement