I want to change a char in array of char at a specific position, I tried to assign an pointer to char to the array and dereference it to assign another value but it emit the signal SIGSEGV. it is normal ? Here is a conceptual code :
int main(){
char * hello = "Hello";
char * ptr = hello;
*(ptr + 1) = 'c'; //trying to change 'e' to 'c'
}
Thank you and have a nice day.;)