QUOTE(Oscar53 @ 1 Jun, 2008 - 02:34 AM)

My program never went in stack overflown but as said perfectly.insane the bug was in the parameter char B[30] where I passed "".
Oops! He's right; I didn't look deeply enough into it. Sorry about that.
QUOTE(Oscar53 @ 1 Jun, 2008 - 02:34 AM)

But why a wrong parameter did not work the printf() after the call of Anagramma???
I can't tell. On my system, the strcat() call in question does cause an exception, since it's trying to write to read-only memory. Which compiler are you using, on which platform? If it turns out that you're writing over one string and successfully doing it, you're overwriting the next string in memory, and if you're lucky, that next string is the other string literal for the printf() call.