Please tell, what is raw string in C++?
A raw string in C++ is the one which does not process the escape characters(for eg: \t,\b etc. )
Let us take this example:
string notraw= “First.\nSecond.\nThird\n”; // Not a Raw string
string raw=R"(First.\nSecond.\nThird\n)"; //Raw String ( Syntax: string x= R"(Random characters)" )
O/P for the first would be:
O/P for the second would be: