You are misusing the term "op amp", which is short for operational amplifier (Google). There are no commercially available IC comparators that contain op amps. The comparator most commonly used by hobbyists, LM339/393, has only one differential amplifier (the input stage), followed by two single-ended gain stages.a comparator is usually made of 3 op amps - with a differential amp in front to monitor the two inputs, with an open loop amp as the output device. usually another differential in the middle. as explained the open loop output with large gain will drive the outputs to the maximum value which falls ~ volt short of the bipolar supply voltages.
A comparator is nothing more than a particular application of the op-amp. In fact, it is the simplest application possible with an op-amp.sorry for if i have used the title "opamp",for my question on behavior of comparators...
Except that an op amp is designed to have feedback around it, and so is either internally compensated or has pins for external compensation. That compensation compromises the speed of the amplifier when it is used open-loop as a comparator. Also, comparators are generally designed to have logic-level outputs, or they have open-collector outputs so the positive level can be externally selected or they can drive a load such as a small relay.A comparator is nothing more than a particular application of the op-amp. In fact, it is the simplest application possible with an op-amp.