explain the formatted input output with strings


Explain the Formatted Input Output with Strings?

These are the third set of the scanf and printf families. They are called sscanf and sprintf.

sprintf

Puts formatted data in to a string which should have sufficient space allocated to hold it. This is able to be done by declaring it as an array of char. The data is formatted as per to a control string of the same form as that for p rintf.

sscanf

Takes data from a string and store in other variables as specified through the control string. This is done in the similar way that scanf reads input data into variables. sscanf is extremely useful for converting strings into numeric v values.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: explain the formatted input output with strings
Reference No:- TGS0305192

Expected delivery within 24 Hours