Copyright © tutorialspoint.com
Syntax
Definition and UsageThe sprintf function uses FORMAT to return a formatted string based on the values in LIST. Essentially identical to printf, but the formatted string is returned instead of being printed. Return Value
ExampleTry out following example:
It will produce following result:
|
Copyright © tutorialspoint.com