char *a="abc";
a[0]='A';
or
*a='A';
gives me segmentation fault. Is it possible to change it? Also explain why is it giving me segmentation fault. (GCC is being used)
char *a="abc";
a[0]='A';
or
*a='A';
gives me segmentation fault. Is it possible to change it? Also explain why is it giving me segmentation fault. (GCC is being used)