high, i have a function which stores two char*, name and key, into a linked list. This is a different function, which creates the char and passes it onto the function which places it into a linked list. My question is if I want to delete name and key later on, will it work. Im thinking that once ive passed the pointer for the char to the linked list, how will the function from my linked list class know the size of the strings. Does it work any way, or is there another way to do it?
Code:char* testname; char* testkey; testname = new char; testkey = new char;