主页
C 语言
C stdio snprintf() 函数
demo_ref_stdio_snprintf
运行 ❯
×
更改方向
保存代码
更改主题
#include
int main() { char destination[50]; snprintf(destination, 50, "Hello %s!", "World"); printf("%s", destination); return 0; }
Hello World!