when should a double equal sign (==) be used

A to set a value of decimal variable
B to set value of float variable
C to check whether two pieces of data are actually equal
D to indicate greater than or less than

C to check whether two pieces of data are actually equal