In the following piece of code I think you meant to write `if(c >= 'A' && c <= 'F')`. <pre> hexnumberc(int c) { if(numberc(c)) return 1; if(c >= 'a' && c <= 'f') return 1; if(c >= 'F' && c <= 'F') return 1; return 0; } </pre>