📜  printf n 个字符 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.003000             🧑  作者: Mango

代码示例2
// Only 5 characters printed
const char * mystr = "This string is definitely longer than what we want to print.";
printf("Here are first 5 chars only: %.5s\n", mystr);