What is /n | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is /n

I dont understand it

14th Nov 2020, 7:03 PM
Zen A ahmad
3 Antworten
+ 2
Its \n Not /n If you use \n in cout statement. It will automatically go to new line Its like endl. cout<<"My name Atif"<<endl; cout<<"Your name \nZen"; This will print My name Atif Your name Zen
14th Nov 2020, 7:12 PM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar
0
Thank you
14th Nov 2020, 7:15 PM
Zen A ahmad
0
You'r Welcome
14th Nov 2020, 7:16 PM
Muhammad Atif Waheed
Muhammad Atif Waheed - avatar