I've been coding in c++ for a while now, and I use string variables quite a lot. One day, I stumbled upon a char* which can also be used to "store" a string of characters, and it's been bothering me ever since that I don't really know what a string is (and by "string", I don't mean a line of characters, I mean the <cstring> string). Is it a class? A struct? A typedef? I would really like someone to give me an intermediate explanation of the inner workings of string variables.
Thanks a lot