How to Compare 2 Character Arrays
<p>How do I compare these two character arrays to make sure they are identical?</p>

<pre><code>char test[10] = "idrinkcoke"
char test2[10] = "idrinknote"
</code></pre>

<p>I'm thinking of using <code>for loop</code>, but I read somewhere else that I couldnt do <code>test[i] == test2[i]</code> in C.</p>

<p>I would really appreciate if someone could help this. Thank you.</p>