You are welcome,
You, as a person who gets the visa of residency, can barely leave Turkey off to another country by the permission of the entitled authority. However, this duration can't be longer than 6 months at one go. You must extend an excuse(such as military service or studentship) for leaving the country longer than 6 months. Your visa of residency gets frustrated in such a circumstance that you'll spend longer than 6 months without any excuse in abroad.
Good luck
