title: Conversion between decimal to hexadecimal
body: <pre><code>unsigned int hex_vale, some_decimal_constant, some_other_decimal_constant;
  
  for(10,000 times){
  if(hex_value == some_decimal_constant){
          call_some_function();
      }
  else if(hex_value == some_other_decimal_constant){
          call_some_other_function();     
      }
  }
  </code></pre>
  
  <p>In the above function to execute if loop I have to convert either hex into decimal or vice versa. I dont want to convert hex to decimal for 10000 times. Can you please help me with conversion of decimal to hex and the hex number should be stored in unsigned integer.</p>