单项选择题

When he opened the tin, it()a bad smell.

A. gave away
B. gave in
C. gave up
D. gave off