How does "\b" and "\n" work together when they are placed next to each other in printf.
For ex: Printf("\naa\b\n")
The solution is "aa".
I was wondering if anyone could explain me how/where "\n" is placed.
Does the occurence of "\n" just makes the file pointer to transfer to the next line without changing the content of the current position? If so, wouldn't "\n" be written at the end of the line? (If yes, where is it written? The answer in that case for the above example should have been just "a", coz Printf("\naa\bc") will give "ac" .)
Thanks in advance for clarifying !