Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi, I wonder, what is the meaning of this command: '\\'

Thanks
Posted

It isn't a command.
It is a single character (hence the single quote characters) which is a single backslash character.
In strings and character literals, in order to enter special characters which can't be typed or which might be confusing, you use a special character as a sequence introducer - the backslash character, and that telkls the compiler to take teh next character as a special
character rather than interpret it as is.

For example, if you want to enter a single quote character in a character literal, it is not that obvious what ''' means: so you enter it
as
'\''

'   Start of character lieteral
\   Start of special character sequence
'   Insert a single quote character
'   End of character literal
To insert a backslash character, you prefix it with another backslash character as the sequence introducer.

Common sequences include:
\\   Back slash
\'   Single quote
\"   Double quote
\n   Newline
\r   Return
\t   Tab
 
Share this answer
 
I m not conform that for what u r asking but "//" is Escape sequences Character in C and smiler language.

For more detail about Escape sequences Character look this link
Escape sequences Character[^]
 
Share this answer
 
Comments
Richard MacCutchan 22-Jun-12 15:33pm    
No it isn't; please read OriginalGriff's explanation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900