Global behavior of the solutions of some difference equations