Which of the following element behave chemically both as a metal and a non metal?

Boron

Argon

Xenon

Carbon