What Does A New Engine Do To A Car?

Does a replaced engine affect value?

.

What happens when you put a new engine in a car?

Is it cheaper to buy a new car or new engine?

Does a new engine reset mileage?