comparing strings with "<" or ">" operators (C)
<p>I try to understand if there is a defined behavior to the following operation in C:</p>

<pre><code>char *str1 = "some string";
char *str2 = "another string";
if (*str1 &gt; *str2)
    //do something...
else
    //do something else...
</code></pre>

<p>(As mentioned in the title, I mean to the "comparison" between the strings using ">" operator)</p>

<p>Obviously if I would try:</p>

<pre><code>str1 &gt; str2
</code></pre>

<p>(without the * operator)</p>

<p>it would calculate the results according to the pointer (i.e the string's address)(right..?).
I searched answers for it but haven't found any, and I didn't succeed to understand it by playing with the code neither.
thanks.</p>