Is ascii character 255 an invisible character or space?

40,068

Solution 1

In the most common extended 8-bit ASCII tables 255 is the 'ÿ' symbol (Latin small letter y with diaeresis). The space character is decimal value 32. So what you are searching for is probably:

cout << char(32);

Solution 2

I guess you mean when you press Alt + 255.
And no Alt + 255 is not the same as a space.

Here is a table of the characters values.

Char Dec Hex Oct
SPACE 32 20 40
Alt + 255   160   A0   240

I don't know much C++ but maybe it is

cout << char(160);
Share:
40,068
Dljcali
Author by

Dljcali

Updated on October 16, 2021

Comments

  • Dljcali
    Dljcali over 2 years

    I am writing some code to print overlapping ASCII character objects and I want some to be invisible instead of the typical " " white space character. Would this solve it?

    cout << char(255);
    
  • MSalters
    MSalters over 9 years
    To be precise, that would be the ISO-8859-x extensions such as ISO-8859-1 (which coincides with the first 255 Unicode code points)