I had never seen this before and was wondering how it worked.
prints out true.Code:char * szTest = "Hello World";
if((string)szTest == "Hello World")
cout << "True";
Since casting the pointer to a string doesn't create a string object to compare, how exactly does this work?