Sujet : Re: Every sufficiently competent C programmer knows
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theoryDate : 12. Mar 2025, 10:49:15
Autres entêtes
Organisation : -
Message-ID : <vqrlar$2ht6c$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Unison/2.2
On 2025-03-11 18:23:24 +0000, Richard Heathfield said:
int rhc(unsigned int i)
{
typedef int(*pf)(unsigned int);
pf arr[3] = {rha, rhb, rhc};
return arr[i % 3];
The return instruction has wrong type.
}
-- Mikko