I know that a string literal is always null terminated, even ""
has a length of 1.
Is it the same case with raw string literal, ex: does R"()"
has a length of 1?
Raw string literals are just normal C strings that ignore escapes, which means they're still null-terminated. It's not like "foo"s
, which is an actual c++ std::string
, which isn't necessarily null-terminated.