- 2
What is the use of front slash(\) ?
I don't know what is this? Please upvote me guys.
6 Answers
+ 3
First, that is called backslash.
\ backslash
/ slash
Slash ( / ) is used for division operator.
Backslash ( \ ) is used for escape sequence or characters. Here is an example of using backslash for escape sequence:
\n --> new line
" First Line \nSecond Line"
>> First line
Second Line
+ 3
You can search on Google u will understood much better. In c cpp java........languages this symbol \ work as a separator if u want to print double quotes then u have to use this backslash if u will write \n then this will change the line n denoting for new line \t for tab .
/ This symbol forward representing nothing it will print as it as . You asking unnecessary Questions on thread there is no word front slash ( \ ) in c ,cpp and java .
+ 2
Devarinti.Venumadav
I think I've explained both.
Again, backslash leans backwards ( \ )
Slash leans forward ( / )
+ 2
Okay.Thank you
+ 1
Cyan I know backslash(/). My doubt is front slash(\) okay
0
Thank you