Double Quote Escape in C

Level 125 keystrokes

Outputs text containing double quotes using escape sequences.

C code

// \" is the escape sequence for a double quote character
// Without escaping, quotes would end the string prematurely
1printf("He said \"Hi\"");

Output

He said "Hi"
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this C code and how often they appear.

  • "× 4
  • \× 2
  • ;× 1
  • (× 1
  • )× 1

More C examples at level 1

← C typing practice