It depends on what is being bypassed and the extent of the surgery. There are many websites that offer detailed explanations as well as anatomical illustrations.
This question is too vague. There is gastric bypass surgery, which has multiple types, and there is heart bypass, which also has multiple ways to complete.