title: ANSI C - initializing an array
body: <p>What I was always doing is:</p>
  
  <pre><code>int arr[] = {2, 3, 4};
  </code></pre>
  
  <p>and it always worked.</p>
  
  <p>I've heard of a better way to initialize new array, using the pointer:</p>
  
  <pre><code>int *arr = {2, 3, 4};
  </code></pre>
  
  <p>However, it doesn't work in any IDE, it throws some errors like <code>int differs in levels of indirection from int</code>, or <code>too many initializers</code>. How should I do this?</p>