Computer Science, asked by naikjk18, 5 hours ago


What is the purpose of sprintf? *
It writes the formatted data into a file
It prints the data into stdout
O None of the mentioned
O It writes the formatted data into a string​

Answers

Answered by daulatsingh9660
2

Answer:

sprintf function is used to write formatted output to the string, In a C program, we use fgets function as below. sprintf ( string, “%d %c %f”, value, c, flt ) ; where, string – buffer to put the data in.

Similar questions