What is the use of front slash(\) ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 2

What is the use of front slash(\) ?

I don't know what is this? Please upvote me guys.

30th Jan 2021, 3:38 PM
Devarinti.Venumadav
Devarinti.Venumadav - avatar
6 Antworten
+ 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
30th Jan 2021, 3:46 PM
noteve
noteve - avatar
+ 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 .
30th Jan 2021, 4:20 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Devarinti.Venumadav I think I've explained both. Again, backslash leans backwards ( \ ) Slash leans forward ( / )
30th Jan 2021, 3:55 PM
noteve
noteve - avatar
+ 2
Okay.Thank you
30th Jan 2021, 3:57 PM
Devarinti.Venumadav
Devarinti.Venumadav - avatar
+ 1
Cyan I know backslash(/). My doubt is front slash(\) okay
30th Jan 2021, 3:52 PM
Devarinti.Venumadav
Devarinti.Venumadav - avatar
0
Thank you
1st Feb 2021, 2:01 PM
Devarinti.Venumadav
Devarinti.Venumadav - avatar