int my number [10];
void fun(int input, int* addr){
if (input %2 == 0){
*addr = 1;
}
}
int main (){
int i;
for (i = 0; i < 10; i+=1){
fun(number[i], &number[i]);
}
return 0;
}
Jin_3 0 Newbie Poster
rproffitt 2,693 https://5calls.org Moderator
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.