check if equal to \ char or not c++ code example Example: check if equal to \ char or not c++ if (c == '\\') { }