title: using array in condition
body: <p>I want to check an array in a condition. Let's take this simple code below:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      int array[] = {1,2,3,4,5}; // initializing an array
      if(array[] == {1,2,3,4,5}) // using as condition
      {
           printf("worked");
      }
      else printf("not worked");
  
      return 0;
  }
  </code></pre>
  
  <p>But it gives an error: </p>
  
  <pre><code>In function 'main':|
  C:\Python32\Untitled4.c|5|error: expected expression before ']' token|
  ||=== Build finished: 1 errors, 0 warnings ===|
  </code></pre>
  
  <p>So how should I use an array in a condition?</p>