title: In switch statement error is Switch quantity not an integer
body: <p>I am trying to convert C# code to C</p>
  <p><strong>Original C# code is</strong></p>
  <p>Calling  Hex2Binary method from below code</p>
  <pre><code>private string DEtoBinary(string HexDE)
          {
              string deBinary = &quot;&quot;;
              for (int I = 0; I &lt;= 15; I++)
              {
                  deBinary = deBinary + Hex2Binary(HexDE.Substring(I, 1));
  
              }
  
              return deBinary;
  
          }
  </code></pre>
  <p>//Hex2Binary Method</p>
  <pre><code>private string Hex2Binary(string DE)
          {
  
              string myBinary = &quot;&quot;;
              switch (DE)
              {
                  case &quot;0&quot;:
                      myBinary = &quot;0000&quot;;
                      break;
  
                  case &quot;1&quot;:
                      myBinary = &quot;0001&quot;;
                      break;
                      .
                      .
                      .
                   }
        }
  </code></pre>
  <p>But when I write in C, I take argument as shown below</p>
  <pre><code>    char *Hex2Binary(char DE[])
      {
      
          char *myBinary = &quot;&quot;;
          switch (DE)
          {
              case &quot;0&quot;:
               myBinary = &quot;0000&quot;;
               break;
      
              case &quot;1&quot;:
               myBinary = &quot;0001&quot;;
               break;
      
              case &quot;2&quot;:
               myBinary = &quot;0010&quot;;
               break;
                       .         
                       .   
  
           }
      }
  </code></pre>
  <p>I am getting error as
  Switch quantity not an integer.</p>