title: Convert Char * buffer to hex for printing in c
body: <p>Hi i tried to print the value in char buffer as hex value as ("0X%x"),</p>
  
  <pre><code>char buffer[1024]
  printf("recived (0x%x) from the client\n",buffer);
  </code></pre>
  
  <p>but there are warning when i compile the code : </p>
  
  <pre><code>server.c:105:5: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char *’ [-Wformat]
  </code></pre>
  
  <p>so how to solve this problem ????</p>