What is the purpose of a comparator in op-amps?
A. To detect the occurrence of a changing input voltage
B. To maintain a constant output when the dc input voltage changes
C. To produce change in output when an input voltage equals a reference voltage
D. To amplify an input voltage
Share your understanding of this question with the correct explanation.