non va comunque

warning: comparison between pointer and integer
if (*(prova+i) == ",") elem += 1;