\\: Prints single \ : printf Escape Sequence « printf scanf « C Tutorial






#include <stdio.h>
main()
{
    printf("\\ %d", 25);
}
\ 25








4.11.printf Escape Sequence
4.11.1.Escape Sequence
4.11.2.\a: Produces a beep or flash; the cursor position is not changed.
4.11.3.\b: Moves the cursor to the last column of the previous line.
4.11.4.\f: Moves the cursor to start of next page.
4.11.5.\n: New line
4.11.6.\r: Carriage Return (Moves the cursor to the first column of the current line.)
4.11.7.\t: Horizontal Tab
4.11.8.\v: Vertical Tab
4.11.9.\\: Prints single \
4.11.10.\ for quotation
4.11.11.%%: Prints %.