sprintf include code example
Example 1: sprintf in c
#include <stdio.h>
#include <math.h>
int main () {
char str[80];
sprintf(str, "Value of Pi = %f", M_PI);
puts(str);
return(0);
}
Example 2: include for sprintf
#include <stdio.h>