C# two double quotes

前端 未结 11 1546
灰色年华
灰色年华 2020-12-10 03:54

I want to print two double quotes in C# as the output. How to do this?

I mean the output should be: \"\" Hello World \"\"

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 04:33

    When you want to use special character which are exist in you language add \ before that character then special character start behaving as a string. In your case use like this

    \"Hello word\"
    

    Out put

     "Hello word"
    

提交回复
热议问题