Ti dovrebbe dare problemi se non pulisci il buffer con fflush(stdin) o :
codice:
while(getchar()!=10)
    ;