Podcast
Questions and Answers
Which of the following is not a valid string in C?
Which of the following is not a valid string in C?
- "True" (correct)
- ""
- "123"
- "Hello, World!"
What is the maximum length of a string in C?
What is the maximum length of a string in C?
- 255 characters
- 1024 characters
- There is no maximum limit (correct)
- 512 characters
What is the difference between a character array and a string in C?
What is the difference between a character array and a string in C?
- A character array is not null-terminated, while a string is null-terminated (correct)
- There is no difference between a character array and a string in C
- A character array is a collection of integers, while a string is a collection of characters
- A character array is a collection of characters, while a string is a collection of integers