let's consider a smash, in this case it's more likely to happen this situation. Say, one player was making a smash shot and meanwhile the other player is way behind the baseline, the smash goes way off and hits the opponent before touching the ground, it's obvious that the ball was landing out, but who gets the point in this case?
The player that was hit loses the point. To quote from the Rules of Tennis:
- PLAYER LOSES POINT
i. The ball in play touches the player or anything that the player is wearing or carrying, except the racket
The ball is still in play until it touches the ground or a permanent fixture, so the player has to get out of the way, just as they would for any other ball going out.