CTO vs COO? What’s the Difference in a Technology Company?

CTO vs COO? What's the difference in between the COO vs CTO roles in most tech companies, and how do these views impact software architectural decisions?