Home > Back-end >  Solve a problem bai, is string constants in C language, '
Solve a problem bai, is string constants in C language, '

Time:10-02

"\ \ " why is wrong? Explain the bai

CodePudding user response:

\ is the escape character, is to escape, the characters of behind \ \ t is a TAB character, \ n is a newline, so a single string \ (" \ ") will go wrong, because it's behind the \ "escape,
Want a \ string, "\ "
"\ \ " in the first two get a \ \ \, after an \ "escape, so" \ \ \ "is wrong,

CodePudding user response:

I want to be your iron powder,

CodePudding user response:

Two get a \ \,
So, "\ \ " get "\ ", first to get "";
\ "get a double quotation marks, but the end of this double quotation marks will not be considered for a literal string, so this string of lack of a pair of"
  • Related