Salve... Ho sviluppato il seguente codice.
Durante la compilazione mi viene dato il senguente errore sul return della funzionecodice:key* find_key_by_format(const registry* reg, format f){ // Dichiarazione delle variabili key* cont_key[MAX_ENTIRES]; int contatore = 0; int contatore_key; // Ricerca key for (contatore = 0; contatore < MAX_ENTIRES ; contatore++) { if(reg->entires[contatore]->type==f){ cont_key[contatore_key]=reg->entires[contatore]; } } return cont_key; }
Errore:Multiple markers at this line
- return from incompatible pointer type [enabled by
default]
- function returns address of local variable [enabled by
default]
Sinceramente non sto riusciendo a capire cosa ci sia di sbagliato. Aspetto il parare di gente che sicuramente ne sa piu di me

Rispondi quotando