I was given a programming exercise by this e-book I'm currently learning C++ through. I came across something I find kind of odd, as it wants me to use a pointer-to-string in the function, but it also wants said string to have a default value. Now this makes no sense in my head as I thought pointers pointed to a memory location(Example: a variable's memory address.) But that makes no sense if isn't initialized.
One way I thought I could do this was to use the new keyword to create a new string object containing this default value, but I imagine this'd be pretty messy.
Basically the question is: Is there any other way I can go about this other than using new?