Comparing two integer values in C