segmentation fault on assigning char to a char of a string at index

Printable View