title: How to form an ASCII(Hex) number using 2 Chars?
body: <p>I have char <code>byte[0] = '1' (H'0x31)</code>and <code>byte[1] = 'C'(H'0x43)</code></p>
  
  <p>I am using  one more buffer to more buff <code>char hex_buff[0]</code> .i want to have hex content in this <code>hex_buff[0] = 0x1C</code> (i.e combination of byte[0] and byte[1])</p>
  
  <p>I was using below code but i realized that my code is valid for the hex values 0-9 only</p>
  
  <pre><code>char s_nibble1 = (byte[0]&lt;&lt; 4)&amp; 0xf0;
  
  char s_nibble2 =  byte[1]&amp; 0x0f;
  </code></pre>
  
  <p><code>hex_buff[0] = s_nibble1 | s_nibble2;</code>// here i want to have <code>0x1C</code> instead of <code>0x13</code></p>