Excape sequence question

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,
I am trying to use escape sequence for slash in char this way :

'/\' but it is not woring. How can I represent slash in char?

Thank you!
 
csharpula said:
Hello,
I am trying to use escape sequence for slash in char this way :

'/\' but it is not woring. How can I represent slash in char?

Thank you!

A slash doesn't have to be escaped at all:

'/'

If you mean that you want a backslash, you escape it with a backslash:

'\\'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top