When declaring a string literal in C, which character is automatically appended at the end?

  • Exclamation mark '!'
  • Null terminator ''
  • Question mark '?'
  • Semicolon ';'
In C, a null terminator '' is automatically appended at the end of a string literal. This null character indicates the end of the string, allowing C functions to determine the string's length.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *