Skip to content

Instantly share code, notes, and snippets.

@pastagatsan
Last active August 29, 2015 14:02
Show Gist options
  • Save pastagatsan/4ff15cc54c9d0faed3d2 to your computer and use it in GitHub Desktop.
Save pastagatsan/4ff15cc54c9d0faed3d2 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
char my_string[11];
char * name = "John";
sprintf(my_string, "hello %s", name);
printf(my_string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment