Name the Mughal emperor occupying the throne of Delhi when the revolt of 1857 took place

A Shah Alam II
B Jahandar Shah
C Bahadur Shah Zafar
D Humayun