Hello, all.
I'm looking through the code I'm altering for MFC, and I found these variable printf lines.
printf("%s%s","|Val=",outString);
and
printf("|type = 0x%x\n", type);
Of course I understand how the latter one works, but the former is confusing. It seems to output just like the second variation, even though the order of input is reversed.
Why do they both do (what appears to be) the same thing?
If I want to concatenate a version of the first format to the end of an existing string, do I have to change the order drastically for a successful sprintf, or just work with it as is?