单项选择题

When the bell rang, the teacher told the class ______.

A. stop to talk
B. stop talking
C. to stop talking