What’s the difference between copyright and trademark?

The basic difference between trademark and copyright is that:
A Trademark protects the use of the name of a company or product, slogans and brand identity (logos).
A Copyright protects the rights of a person that created something in music, art, literature, and intellectual work like software development.