title: Hexadecimal number comparison?
body: <p>I'm a new to C language and a bit confused about how hexadecimal, decimal numbers work. I am trying to work with maximum of 4 bytes, so 0xFFFFFFFF. I basically want the program to give an alert if any number is entered with 9 digits or higher. I have written a code as below but it still lets me input numbers bigger than 0xFFFFFFFF. What am I doing wrong? Thanks in advance!</p>
  
  <pre><code>int main()
  {
  uint32_t rgba;
  printf("Enter rgba value: ");
  scanf("%x", &amp;rgba);
  if (rgba &gt; 0xFFFFFFFF){
      printf("Maximum number of 8 digits!\n");
  }
  else{
      rgba_values(rgba);
  }
  return 0;
  }
  </code></pre>