A lot of hosting companies are offering free domains with their packages. My question is, if at some point I want to quit using the hosting service, what would happen to my domain name? Do they offer any domain transfer service and if they do, I would have to pay some extra bucks for that?

What would you suggest, either to go with hosting + domain or buy domain from somewhere else?