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.
Loading...
Related Quiz
- In C, ______ is the standard error output stream.
- In C, subtracting two pointers that point to elements of the same array yields a result of type ________.
- How can you pass a command line argument to a C program that is meant to be interpreted as an integer?
- You are designing a C program to handle a database of employees in a company. Each employee has attributes like name, ID, and salary. What would be an efficient way to manage this data?
- The function ________ in C changes the size of the memory block pointed to by a given pointer.