无法识别的转义序列会产生编译时错误

以下示例将无法编译:

string s = "\c";
char c = '\c';

相反,它们将在编译时产生错误 Unrecognized escape sequence。