title: How to initialize a unsigned char array?
body: <p>What I am really trying to achieve is an array of dynamic byte patterns that I can use as a pattern searcher when I buffer binary files. But I am starting off basic for now. I have the following code that I based off of an example found on StackOverflow.</p>
  
  <p><a href="https://stackoverflow.com/questions/845089/how-to-initialize-a-multidimensional-char-array-in-c">How to Initialize a Multidimensional Char Array in C?</a></p>
  
  <pre><code>typedef unsigned char BYTE;
  
  int main()
  {
      BYTE *p[2][4] = {
          {0x44,0x58,0x54,0x31},
          {0x44,0x58,0x54,0x00}
      };
  
      return 0;
  }
  </code></pre>
  
  <p>I compile it with mingw32 for Windows.</p>
  
  <pre><code>D:\&gt; gcc example.c -o example.exe
  </code></pre>
  
  <p>I get the following warnings when I try to compile.</p>
  
  <pre><code>example.c: In function 'main':
  example.c:6:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:6:3: warning: (near initialization for 'p[0][0]') [enabled by default]
  example.c:6:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:6:3: warning: (near initialization for 'p[0][1]') [enabled by default]
  example.c:6:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:6:3: warning: (near initialization for 'p[0][2]') [enabled by default]
  example.c:6:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:6:3: warning: (near initialization for 'p[0][3]') [enabled by default]
  example.c:7:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:7:3: warning: (near initialization for 'p[1][0]') [enabled by default]
  example.c:7:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:7:3: warning: (near initialization for 'p[1][1]') [enabled by default]
  example.c:7:3: warning: initialization makes pointer from integer without a cast [enabled by default]
  example.c:7:3: warning: (near initialization for 'p[1][2]') [enabled by default]
  </code></pre>
  
  <p>I don't understand the nature of this warning. How do I go about resolving it? Thanks.</p>