char arrayA[10];
char *arrayB;
#include <stdio.h>
void foo(char *a, char b[])
{
}
int main(void)
{
arrayB = &arrayA;
printf("%08x %08x\n", &arrayA
[0], &arrayA
); printf("%08x %08x\n", &arrayB
[0], &arrayB
);
printf("%08x %08x\n", (&arrayA
[0])+1, (&arrayA
)+1); printf("%08x %08x\n", (&arrayB
[0])+1, (&arrayB
)+1);
return 0;
};
Y2hhciBhcnJheUFbMTBdOwpjaGFyICphcnJheUI7CgojaW5jbHVkZSA8c3RkaW8uaD4KCnZvaWQgZm9vKGNoYXIgKmEsIGNoYXIgYltdKQp7Cn0KCmludCBtYWluKHZvaWQpCnsKICBhcnJheUIgPSAmYXJyYXlBOwoKICBwcmludGYoIiUwOHggJTA4eFxuIiwgJmFycmF5QVswXSwgJmFycmF5QSk7CiAgcHJpbnRmKCIlMDh4ICUwOHhcbiIsICZhcnJheUJbMF0sICZhcnJheUIpOwoKICBwcmludGYoIiUwOHggJTA4eFxuIiwgKCZhcnJheUFbMF0pKzEsICgmYXJyYXlBKSsxKTsKICBwcmludGYoIiUwOHggJTA4eFxuIiwgKCZhcnJheUJbMF0pKzEsICgmYXJyYXlCKSsxKTsKCiAgcmV0dXJuIDA7Cn07