title: Difference between byte and char in C
body: <p>I am wondering why I can't compile an example from book. I simplify the example here to avoid posting example from a copyrighted book.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  BYTE *data = "data";
  
  int main()
  {
       printf("%s", data);
       return 0;
  }
  </code></pre>
  
  <p>When compile with g++, i get error,</p>
  
  <pre><code>error: invalid conversion from 'const char*' to 'BYTE*'
  </code></pre>
  
  <p>The program works by simply replacing BYTE with char, but I must be doing something wrong since the example comes from a book.</p>
  
  <p>Please help pointing out the problem. Thanks.</p>