C4309 error

Tweet


In Visual Studio
C4309: truncation of constant value
when such error occurs

1 character of char type is represented by single quotation mark. Error occurs for 2 or more characters such as 'ab'

For example, suppose that \ is an unusual character encode, then '\0' is 2 characters with unknown 1 character '\' and 1 character '0'.


Back