#include
int main() {
int i=10,j=20;
printf(\"%d%d%d\",i,j);
printf(\"%d\",i,j);
return 0;
}
Using the Turbo C compiler,
You've got your format specifiers all mixed up, and I don't think the code you posted is your actual code. On my Visual Studio compiler, I see this:
1020010
Each %d
denotes a place where printf
should insert one of your integer values.
printf("%d%d%d",i,j);
You told printf
to expect three, but you only gave it two. It's possible Turbo C is doing something different with the arguments under the hood, but you still need to match your format specifiers to your arguments:
printf("%d%d",i,j);