I am using Comparator (schematic shown below). I have connected output with Vcc via 2k ohm resistor, as it has open collector output.
But if I change the supply voltage to 5V, then the output is showing 5V. (schematic below)
Is there any rule "voltage at the terminal (inverting/non-inverting) of the comparator should not be higher than supply voltage of the opamp.