What is the difference between \"printf(...)\" and \"sprintf(...)\"?

What is the difference between \"printf(...)\" and \"sprintf(...)\"?

the printf() function is supposed to print the output to stdout.In sprintf() function we store the formatted o/p on a string buffer.

By:Vivek Kr. Agarwal
Date:2029-12-08 00:00:00

the printf() function is supposed to print the output to stdout.In sprintf() function we store the formatted o/p on a string buffer.

By:MUKESH YADAV
Date:0000-00-00 00:00:00

the printf() function is supposed to print the output to stdout.In sprintf() function we store the formatted o/p on a string buffer.

By:Sandeep
Date:0000-00-00 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C SUB Links

C SUB interview questions and answers for experienced and fresher