Which of the following statements is/are TRUE with respect to C-strings and arra
ID: 3727299 • Letter: W
Question
Which of the following statements is/are TRUE with respect to C-strings and array of characters? Select one or more: C string variable must be terminated with a NULL 10 character A C-string variable does not use an int variable to keep track of how much of the array is currently being used. Instead the character '1O' is used as a sentinel value to mark the end of the C string. Character arrays (not a C String) must be terminated with a NULL 10 character char short_stringl (a, b', 'c); The above declaration will add a 10 at the end of the array.Explanation / Answer
Ans)
A C-String variable does not use an int variable to keep track of how much of the array is currently being used.Instead the charcter '' is used as a sentinel value to mark the end of the C-String
Character arrays must be terminated with a NULL character.
______________
_______________Thank You
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.