title: How to check if a string is in an array of strings in C?
body: <p>How to write below code in C? Also: is there any built in function for checking length of an array?</p>
  
  <p><strong>Python Code</strong></p>
  
  <pre><code>x = ['ab', 'bc' , 'cd']
  s = 'ab'
  
  if s in x:
    //Code
  </code></pre>