Are there any downsides to using '?'-style character literals to compare against, or assign to, values known to be of type wchar_t, instead of using L'?'-style literals?
Are there any downsides to using ‘?’ -style character literals to compare against, or
Share
The only downside is that your program might fail on stone-age systems using EBCDIC. On any real world system worth consideration,
charandwchar_tvalues for the portable character set are all ASCII, and on increasingly many (but not all),wchar_tis a Unicode codepoint number.