title: Search for a specific character in a 2D array
body: <p>I was wondering how you would search through a 2D array (used as a parameter for a function), and find a specific character, e.g. an exclamation mark?</p>
  
  <p>Say I have a 2D array island[20][40] and I want to find the character X. My approach would be to use a nested for loop, to go through each element and an if statement. E.g.</p>
  
  <pre><code>for (i = 0; i &lt; 20; i++) {
      for (j = 0; j &lt; 40; j++) {
      //Not sure what goes here (I want a function that identifies the element in the array)
      if ((some variable) == 88)
      printf("The treasure is at: (%d, %d)", i, j);
  </code></pre>
  
  <p>Thanks for your help :)</p>
  
  <p>-island[20][40] works fine. I just want to know how to search through it for a specific character.</p>