#include <stdio.h>
void change(int *a,int n);
int main(void) {
int b[]={1,2,3,4,5};
int size=sizeof(b)/sizeof(b[0]);
change(b,size);
//int *p=a;
return 0;
}
void change(int *a,int n){
for(int i=0; i<n; i++){
a[i]+=1;
//printf("a[%d] :%d \n",i,a[i]);
//printf("p[%d] :%d \n",i,*(p+i));
//printf("a+%d :%p \n",i,a+i);
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNoYW5nZShpbnQgKmEsaW50IG4pOwoKaW50IG1haW4odm9pZCkgewoJCglpbnQgYltdPXsxLDIsMyw0LDV9OwoJCglpbnQgc2l6ZT1zaXplb2YoYikvc2l6ZW9mKGJbMF0pOwoJCgljaGFuZ2UoYixzaXplKTsKCS8vaW50ICpwPWE7CglyZXR1cm4gMDsKfQoKdm9pZCBjaGFuZ2UoaW50ICphLGludCBuKXsKCWZvcihpbnQgaT0wOyBpPG47IGkrKyl7CgkJYVtpXSs9MTsKCQlwcmludGYoIiVkICIsYVtpXSk7CgkJLy9wcmludGYoImFbJWRdIDolZCBcbiIsaSxhW2ldKTsKCQkvL3ByaW50ZigicFslZF0gOiVkIFxuIixpLCoocCtpKSk7CgkJLy9wcmludGYoImErJWQgICA6JXAgXG4iLGksYStpKTsKCX0KCXByaW50ZigiXG4iKTsKfQ==