开发者

A question on c program language [closed]

开发者 https://www.devze.com 2023-01-10 05:16 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_高级运维 Closed 12 years ago.

i want print a statement 5 times

without using any loop n should be in a line


printf("%s %s %s %s %s",s,s,s,s,s);


How about this?

printf("%s",s);printf("%s",s);printf("%s",s);printf("%s",s);printf("%s",s);

It's 5 print statements on one line, and an alternative to the others who used a single print statement!


Like this, you mean ?

const char * s = "a statement";

printf("%s %s %s %s %s\n", s, s, s, s, s);
0

精彩评论

暂无评论...
验证码 换一张
取 消