title: C command similar to "if x in list" of Python
body: <p>In Python we could use <code>if x in list:</code> so I was wondering if there's a similar command in C, so that we don't have to go through the whole thing using a <code>for</code>.</p>