The operators evaluate as you would expect them to, to the value true if the relation holds, false otherwise. They are generally used in condition expressions.
/* File: FirstFunction.c By: Christopher Manloloyo This Program is used to learn about conditional operators*/main(){ //Declare some variables int a, b, c, d, e, x, y; a = b = 10; c = 5; d = 15; e = 100; x = (c < b); y = (a != b); /* Printing the Results To the Screen */ printf("(c < b) = %d \n", x); printf("(a != b) = %d \n", y); printf("(a == b) = %d \n", (a == b)); printf("(b < d) = %d \n", (b < d)); printf("(e < a) = %d \n", (e < a)); printf("(a >= b) = %d \n", (a >= b)); printf("(a <= b) = %d \n", (a <= b)); printf("((e%2) == 0) = %d \n", ((e%2) == 0));}