How are String represented in memory in C?The object of some classLinked list of charactersSame as other primitive data typesAn array of characters
Question
How are String represented in memory in C?The object of some classLinked list of charactersSame as other primitive data typesAn array of characters
🧐 Not the exact question you are looking for?Go ask a question
Solution
In C, strings are represented in memory as an array of characters. Each character in the string is stored in a sequential memory location. The end of the string is marked with a special character, the null character, which is denoted by '\0'. This character is automatically added to the end of the string by the C compiler.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.