Can someone explain to me what the **
after Cat is for? If it's a pointer to a pointer, shouldn't there be a space?
Cat fetch_and_kill_oldest(Cat** cat_array, int length){
//This function tries to find the oldest cat, take away one life,
Cat temp = cat_array[0];
for(int i = 1; i < length; i++){
if (cat_array[i].age > temp.age){
temp = cat_array[i];
}
}
temp.lives -= 1;
return temp;
//stop here
}