In a simple program we declare a char and a wchar_t variable.
We initialize them using some values.
And we display the output using cout.
char value=55, will output 7. It will output the char value that corresponds to decimal 55.
char value=41, will output ), for the same reason.
char value='g', will output g. It will output the character g. and if we want the corresponding decimal we cast an int to it.
Right?? I think that is right.
wchar_t does the same job as char but it can store more characters (or not?)
wchar_t value='g' will output 103 and not g.
Why is that?
Obviously I am missing something or there is something wrong with my reasoning.