store value in char array pointed by char pointer
i have a char pointer.
char *ch;
char arr[100];
now i want to store the value of the char array ch is pointing to in
another array arr. I want to store the value pointed to by ch permanently
, so that any other operation performed on ch will not modify the original
value of array. can anyone tell me how to do this?
No comments:
Post a Comment