CIO is usually over the IT department internally. A CTO is usually over product development.
For example, Cisco has a CTO that is responsible for operations concerning the deveopment, marketing, and sales of its products to its customers. They have a CIO which is incharge of internal IT procedures, policies, and operations.