I saw this in a project (simplified of course). Is that a good way to do it or should I use an if statement instead?
Code:#include <stdio.h> #include <stdlib.h> int main() { int a = 10; int b = 20; int rv = a == b; printf("rv=%d\n", rv); return 0; }