Index » Programming » C/C++ » odd number in c john 4 Sep 08, 10:57AMParent Postodd number in cTry using the bitwise 'and' operator: if(a&1) printf("Odd"); else printf("Even");