这个怎么还可以这样用?
char p[]="%s%s%s";printf (p+2,"Hi","Mary");
2015-01-15 20:50
程序代码:#include <stdio.h>
#include <string.h>
int main() {
char *p = "%d%s%f";
int i;
for(i = 0; i < strlen(p); i++) {
puts(p + i);
}
printf(p, 1, "Mary", 3.141592);
puts("");
printf(p + 2, "Mary", 3.141592);
puts("");
printf(p + 4, 3.141592);
puts("");
return 0;
}

2015-01-15 22:09
2015-01-15 22:14
2015-01-15 22:25
2015-01-15 22:28
2015-01-15 22:32
2015-01-16 09:06

2015-01-16 09:55
2015-01-16 10:09
2015-01-16 10:31