#include <stdio.h>
void change(int *p[],int n);
int main(void) {
int a=1;
int b=2;
int *p[2]={&a,&b};
int size=sizeof(p)/sizeof(p[0]);
change(p,size);
return 0;
}
void change(int *p[],int n){
for(int i=0;i<n;i++){
*p[i]+=1;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY2hhbmdlKGludCAqcFtdLGludCBuKTsKaW50IG1haW4odm9pZCkgewoJaW50IGE9MTsKCWludCBiPTI7CglpbnQgKnBbMl09eyZhLCZifTsKCWludCBzaXplPXNpemVvZihwKS9zaXplb2YocFswXSk7CgljaGFuZ2UocCxzaXplKTsKCXByaW50ZigiJWRcbiIsYSk7CglwcmludGYoIiVkIixiKTsKCXJldHVybiAwOwp9CnZvaWQgY2hhbmdlKGludCAqcFtdLGludCBuKXsKCWZvcihpbnQgaT0wO2k8bjtpKyspewoJCSpwW2ldKz0xOwoJfQp9Cg==