Select from following answers:- string s="c:\\demo.txt";
- string s="c:/demo.txt";
- string s=@"c:\demo.txt";
- all of these

- All Above
All of the above declarations are correct.
For single slash, we can use forward slash.
For back slash, either use \\ or @ followed by \.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator