Meaning of "." in printf
I was just reading the classic K&R and encountered the following syntax:
printf("%.*s",max,s);
What is the meaning of "." here?When I don't apply a "." here,then whole
string is printed,but when we don't apply a "." ,atmost max characters are
printed.I will be really thankful if anyone could explain this.
No comments:
Post a Comment