+ 1
what is the output of the code?
printf("c:\tc\bin\run\a.txt");
2 Answers
0
c:\tc\bin\run\a.txt Whatever we write in between brackets..All are printed...
0
backslash will escape some characters : \t to tabulation \b to backspace \r to carriage return \a to alert (full list here ==> https://en.m.wikipedia.org/wiki/Escape_sequences_in_C)
to print literal backslash you have to escape it with itself :
printf("c:\\tc\\bin\\run\\a.txt");