OK ok, I know this has been asked before but I did not understand one word of it to tell you the truth.
All I am trying to understand is something like
main()
{
printf("What is this: %s or %d")
return 0;
}
Now I don't think that is exactly correct but it is just to give you a clue so you can answer my question.
I know that these % dealies are supposed to be "placeholders"?
I don't understand this, someone said that if I have %s it will pass the argument onto something and they lost me.
So I would like a clear answer, what I am trying to understand is if this code makes a line appear and the % things do speacil things like for one program I made from an example in a book to start to learn C. It is talking about memory management and it says to make the program and what it does is displays the amount of bits it takes up and they had something like:
printf( "\nA char is %d bytes", sizeof( char ));
how does the program know what %d does and how does it do it I know this question is worded oddly but I don't quite know even how to ask about this so please help.