Answers for "c formatted strings custom functions example"

C
0

c create formatted string

sprintf

// Allocates storage
char *hello_world = (char*)malloc(13 * sizeof(char));
// Prints "Hello world!" on hello_world
sprintf(hello_world, "%s %s!", "Hello", "world");

Credit: akappa
Posted by: Guest on May-19-2021

Code answers related to "C"

Browse Popular Code Answers by Language