<p>If I have a char which holds a hex value such has 0x53, (S), how can I display this as "S"?</p>

<p>Code:</p>

<pre><code>char test = 0x53;
cout &lt;&lt; test &lt;&lt; endl;
</code></pre>

<p>Thanks!</p>

There's no such thing as a variable that stores a hex value, or a decimal or octal value. Hex, octal, and decimal are just different ways of representing numbers to the compiler. The compiled code will represent everything in binary.
These statements all have the
exact
same effect (assuming the charset is ASCII):
```
```
test = 0x53; // hex
test = 'S';  // literal constant
test = 83;   // decimal
test = 0123; // octal
```
```
So print the character the same way you would with any character, no matter how you assign it a value.