Idiom meaning: "Give up the ghost"?

A ) To lose consciousness

B ) To surrender

C ) To die ✅

D ) Give up