How to write below code in C? Also: is there any built in function for checking length of an array?

Python Code

x = ['ab', 'bc' , 'cd']
s = 'ab'

if s in x:
  //Code
Edit
Report