So I want to check if someone enters: \\n (\'\\\' and then \'n\') from the keyboard to a string, so I\'m doing something like this:
\\n
\'\\\'
\'n\'
compare the \ like this. if ((str[i] == '\\') && (str[i+1] == 'n'))
if ((str[i] == '\\') && (str[i+1] == 'n'))
because we have to escape the escape sequence \.