Regarding the new line character

for newline character we use ‘/n’ but sir has used ‘\n’ . is it the same or not. If it is not the same then how sir is able to perform the actions.

‘\n’ is for new line
not ‘/n’

run this simple code you will understand
#include
using namespace std;
int main () {
cout<<“14 \n 34 /n asdf”;
return 0;
}