String in C is defined as constant and it gets memory in the data section of the code. Whenever you execute your program ,then the string is taken as a constant value and any modification to it throws an error.
String can be defined as an array of character, so you access individual character using pointer.