Hi all.
I am new to C and am trying to get to learn this programming language.
I came across this peice of code and would like anyone of you to explain this to me:
Code:
int main() {
char bbees[10], style[35], buf[35];
int bbb = 16;
int ccc = 0;
sprintf(bbees, "%08x", &bbb);
printf(bbees);
printf("\n");
sprintf(buf, "\\x%c%c\\x%c%c\\x%c%c\\x%c%c", bbees[6],
bbees[7], bbees[4], bbees[5], bbees[2], bbees[3], bbees[0],
bbees[1]);
strcpy(style, buf);
sprintf(buf,"%%08x.%%08x%%n");
strcat(style, buf);
printf("%s\n", style);
printf(style, &bbb, &bbb, &ccc);
}
I would like to know what these lines mean:
sprintf(buf, "\\x%c%c\\x%c%c\\x%c%c\\x%c%c", bbees[6],
bbees[7], bbees[4], bbees[5], bbees[2], bbees[3], bbees[0],
bbees[1]);
sprintf(buf,"%%08x.%%08x%%n");
printf(style, &bbb, &bbb, &ccc);
If anyone can help, I am glad.
THanks you