nn le ho testate ma dovrebbero essere ok

codice:
struct elemento{
 int info;
 struct elemento* next;
};

public struct elemento* primoPari(struct elemento* testa){
   if(testa==NULL) return NULL;
   if(testa->info%2==0) return testa;
   return primoPari(testa->next);
}

public struct elemento* primoPariIterativo(struct elemento* testa){
   while(testa!=NULL){
       if(testa->info%2==0) return testa;
       testa=testa->next;
   }
   return NULL;
}