mknarang.nsit said:
i have just started studying C.I know C++ before this.i havent reallly
understand the concept of sprintf().could any one plz tell me what is
the difference b/w sprintf() and fprintf() through an example
1) Sentences start with capital letters, like this one.
2) Space comes after a period and before the beginning of the next
sentence, one or two is fine.
3) In the english language we always capitalize the word "I".
4) Don't use abbreviations like "plz" in a technical group like this
one if you want to be taken seriously.
Also, since you are posting from Google Groups, please be sure to read
<
http://cfaj.freeshell.org/google/> before posting a followup.
Now to your question: sprintf writes to a character buffer, fprintf
writes to a stream. See your local documentation or a good C book for
the details.
Robert Gamble