#include <stdio.h>
int main(void) {
int x[5] = {54, 56, 64, 42, 58};
int *p;
int i;
int *max;
p = x;
for (i = 0; i < 5; i++) {
printf("*(p+%d) = %d\n", i
, *(p
+ i
)); }
max = p + 0;
for (i = 1; i < 5; i++) {
if (*max < *(p + i)) {
max = p + i;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgaW50IHhbNV0gPSB7NTQsIDU2LCA2NCwgNDIsIDU4fTsKICBpbnQgKnA7CiAgaW50IGk7CiAgaW50ICptYXg7CiAgCiAgcCA9IHg7CiAgcHJpbnRmKCIqUCAgPSAlZFxuIiwgKnApOwogIGZvciAoaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgIHByaW50ZigiKihwKyVkKSA9ICVkXG4iLCBpLCAqKHAgKyBpKSk7CiAgfQogIAogIG1heCA9IHAgKyAwOwogIGZvciAoaSA9IDE7IGkgPCA1OyBpKyspIHsKICAgIGlmICgqbWF4IDwgKihwICsgaSkpIHsKICAgICAgbWF4ID0gcCArIGk7CiAgICB9CiAgfQogIHByaW50Zigi5pyA5aSn5YCkPSVkXG4iLCAqbWF4KTsKICAKICByZXR1cm4gMDsKfQ==