Okay, so I'm attempting to learn C, but I can't get my head past something..
printf ("Astronomy is %dderful \n",1);
Okay, %d is the variable, and it says what the variable is, \n",1); The variable = 1.
but why wouldn't you just say ("Astronomy is 1derful") Or whatever, instead of typing %d AND typing what %d is after the string.
printf ("Astronomy is %dderful \n",1);
Okay, %d is the variable, and it says what the variable is, \n",1); The variable = 1.
but why wouldn't you just say ("Astronomy is 1derful") Or whatever, instead of typing %d AND typing what %d is after the string.


