ZnO+C→Zn+CO
Zn is the oxidizing agent - (Ox. No. of Zn - 2)
C(Ox. No. of C goes from 0 to 2+), so it was oxidized.