ProgrammingModerate

char s[] = "a\tb"; printf("%zu", strlen(s)); What is printed?

  1. A. 4
  2. B. 2
  3. C. 3
  4. D. 5

Correct answer: C. 3

The tab is a single character, so the string holds a, tab and b, which is three characters.

More C Programming questions

Exams that ask this topic