What is the Difference between "printf" and "sprintf"?

Answer Posted / lavanya

printf funtion is to write the output to stdout.
sprintf function is to store romatted input output on a
string buffer

Is This Answer Correct ?    11 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between pointer to constant vs. Pointer constant

578


What is the limitation of cin while taking input for character array?

1453


Explain container class.

687


How is modularity introduced in C++?

765


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

552






Explain the static member function.

704


Differentiate between an array and a list?

703


What is encapsulation in C++? Give an example.

584


Which software is best for programming?

659


What is a local reference?

669


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

631


When does a 'this' pointer get created?

616


What is class and structure in c++?

556


What is decltype c++?

557


Explain differences between alloc() and free()?

578