Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
The reference book I use says that char size is 8 bits wide, regardless of 16 or 32 bit platforms. Is this guaranteed by the standard, regardless of compiler?
When I get a char from a std::string using c_str() function, is the size of each char 8 bits? What about a wstring? -- what type and size does it hold?
0 · ·