what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??

Answer Posted / guest

printf statement print the result with comment
sprintf statement print the string
Syntax
printf(" ");
sprintf(object name[argument]);

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is calloc malloc realloc in c?

806


Is it acceptable to declare/define a variable in a c header?

863


Explain what is the difference between null and nul?

876


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

892


What is equivalent to ++i+++j?

848


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

830


What are operators in c?

777


How does struct work in c?

805


What’s a signal? Explain what do I use signals for?

837


Why do we need functions in c?

738


Explain how can I make sure that my program is the only one accessing a file?

865


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

908


Why is sprintf unsafe?

800


how many key words availabel in c a) 28 b) 31 c) 32

811


Can the curly brackets { } be used to enclose a single line of code?

927