+ 1

what is the output of the code?

printf("c:\tc\bin\run\a.txt");

22nd Jun 2018, 4:10 PM
Aacharan Jain
Aacharan Jain - avatar
2 Answers
0
c:\tc\bin\run\a.txt Whatever we write in between brackets..All are printed...
26th Jun 2018, 6:16 PM
Sameer Kumar Saha
Sameer Kumar Saha - avatar
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");
28th Jun 2018, 9:47 PM
darrencweid
darrencweid - avatar