"To be or not to be that is the question" are lines from which of Shakespeare's famous plays?

A ) Macbeth

B ) King lear

C ) Hamlet ✅

D ) Romeo and Juliet