I have another simple question.

say for example my code looks like this:

Code:
char str[10] = "abcdef";
sprintf(str, "%c", 'g');
what will happen to the original contents of str? will g be appended to them or will they be cleared?


thank you in advance!