Hi experts
Why i get run-time error with this:
char *temp ="string";
temp[2] = '\0'; // < get errror here?
Memory address is not being touched but only a value which resides on the momory is being altered, there should not be any problem doing this?
Please explain
Thanks
Why i get run-time error with this:
char *temp ="string";
temp[2] = '\0'; // < get errror here?
Memory address is not being touched but only a value which resides on the momory is being altered, there should not be any problem doing this?
Please explain
Thanks
Comment