A question on c program language [closed]
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);
精彩评论