S
sarajan82
Hi All,
I have a string represented by char* (I do not user string class):
char *s="abcd";
Assume I want to remove the last two elements of s. What is the
standard solution for this?
Can I just change the value of s[2] to '\0'?
Thanks a lot
Sara
I have a string represented by char* (I do not user string class):
char *s="abcd";
Assume I want to remove the last two elements of s. What is the
standard solution for this?
Can I just change the value of s[2] to '\0'?
Thanks a lot
Sara