printf可以重复输出多个相同字符吗?该怎么处理

printf可以重复输出多个相同字符吗?不用循环的情况下。[解决办法]如果LZ期望的是类似printf(%8c, a)就

printf可以重复输出多个相同字符吗?
不用循环的情况下。

[解决办法]
如果LZ期望的是类似printf("%8c", 'a');就能打出8个a这样的要求的话,是做不到的。
[解决办法]

探讨

如果LZ期望的是类似printf("%8c", 'a');就能打出8个a这样的要求的话,是做不到的。

[解决办法]
探讨

C/C++ code

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void)
{
char *buf;
……