String literals in C are stored in ________ memory segment.
- Code
- Data
- Heap
- Stack
In C, string literals are stored in the data memory segment. This segment contains constants, such as global and static variables.
Loading...
Related Quiz
- How does C handle array indices that are out of bounds?
- When opening a file with fopen, what happens if the file does not exist and the mode is set to 'r'?
- You are working on a program that processes user input, and you want to ensure that the input string does not exceed a certain length to prevent buffer overflow. Which string handling function would be appropriate to use?
- When a function receives a pointer as an argument, it can modify the ________ that the pointer points to.
- What is the primary use of the fseek function in file handling?