sprintf() provides no bounds checking. See snprintf for an alternative.
#include <stdio.h> int main(void){ char str[80]; sprintf(str,"%s %d %c", "one", 2, '3'); printf("%s", str); }
one 2 3