#include <stdio.h>
#include <ctype.h>
#define size 5
void addcon(int *ptr,int num,int con)
{
for(int k=0; k<num;k++){
*ptr= *(ptr++) + con;
}
}
int main(){
static int array[size] = {3,5,7,9,11};
int konst = 10;
int j;
addcon(array,size,konst);
for(j
=0;j
<size
;j
++)printf("%d ",array
[j
]);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPgojZGVmaW5lIHNpemUgNQoKdm9pZCBhZGRjb24oaW50ICpwdHIsaW50IG51bSxpbnQgY29uKQp7Cglmb3IoaW50IGs9MDsgazxudW07aysrKXsKCSpwdHI9ICoocHRyKyspICsgY29uOwoJfQp9CgppbnQgbWFpbigpewoJc3RhdGljIGludCBhcnJheVtzaXplXSA9IHszLDUsNyw5LDExfTsKCWludCBrb25zdCA9IDEwOwoJaW50IGo7CgoJYWRkY29uKGFycmF5LHNpemUsa29uc3QpOwoJZm9yKGo9MDtqPHNpemU7aisrKXByaW50ZigiJWQgIixhcnJheVtqXSk7CgogICAgcmV0dXJuIDA7Cn0K