\ is a special character (sign) In C#. It is used for escape sequences(break out) such as to print a new line – we use \n, to print a tab – we use \t. We have to use a double backslash (\\) to print a backslash (\).
If we write \ within the message – it throws an error “Unrecognized escape sequence”.
Input : \\ Geeksfor\\Geeks Output : \ Geeksfor\Geeks Input : Clean\\Evironment Output: Clean\Evironment
Below is the implementation of the above approach:
Unrecognized escape sequence `\C'