开发者

A question on c program language [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜