Comparators are used for comparing two values. Say, If we want to compare two physical quantities (temperature, pressure, etc.). We can use equal instruction to determine whether a first comparison value equals a second one.
We can use the not equal instruction to determine if a first comparison value is not equal to a second comparison value or not.
We can use the greater or equal instruction to determine, if a first comparison value is greater than or equal to a second comparison value or not. Both values to be compared must be of the same data type.
We can use the less or equal instruction to determine if a first comparison value is less than or equal to a second comparison value or not. Both values to be compared must be of the same data type.
We can use the greater than an instruction to determine whether a first comparison value is greater than a second one. Both values to be compared must be of the same data type.
We can use less than an instruction to determine whether a first comparison value is less than a second one. Both values to be compared must be of the same data type.
Subscribe to our channel here: / wasimiqbal1919