#include <stdio.h>
#include <string.h>
void print_char(char *str);
int main() {
char str[10] = {'A', 'B', 'C', 'D', 'E', 'F'};
print_char(str);
return 0;
}
void print_char(char *str) {
int i;
printf("%u %u %u\n", sizeof str
, sizeof (char *), strlen(str
)); for(i
= 0; i
< strlen(str
); i
++) { }
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnZvaWQgcHJpbnRfY2hhcihjaGFyICpzdHIpOwoKaW50IG1haW4oKSB7CgljaGFyIHN0clsxMF0gPSB7J0EnLCAnQicsICdDJywgJ0QnLCAnRScsICdGJ307CgoJcHJpbnRfY2hhcihzdHIpOwoKCXJldHVybiAwOwp9Cgp2b2lkIHByaW50X2NoYXIoY2hhciAqc3RyKSB7CglpbnQgaTsKCglwcmludGYoIiV1ICV1ICV1XG4iLCBzaXplb2Ygc3RyLCBzaXplb2YgKGNoYXIgKiksIHN0cmxlbihzdHIpKTsKCWZvcihpID0gMDsgaSA8IHN0cmxlbihzdHIpOyBpKyspIHsKCQlwdXRjaGFyKHN0cltpXSk7Cgl9Cn0K