c check if number is even code example Example: how to know if a number is even in c if((x & 1) == 0) printf("EVEN!\n"); else printf("ODD!\n");