How can i take multiple string input in c?
<p>I am trying to learn string in c. I have written this program. I want this program will terminate for a particular word (press ENTER after typing the word). Its Compile well but after given input when I pressing enter it shows me this message: <strong>test.exe has stopped working.</strong> <strong>Here "test" is the name of my program.</strong>
Please help me to understand this.</p>

<pre><code>#include&lt;stdio.h&gt;
#include&lt;string.h&gt;
#include&lt;stdlib.h&gt;

int main()
{
    int i, j;

        char *str[10];
        for(i=0; i&lt;10; i++)
        {
            //gets(str[i]);
            scanf("%s",str[i]);
            if(str[i]=="man") break;
        }


        for(j=0; j&lt;10; j++)
        {
            printf("%s\n",str[j]);
        }   

    return 0;
}
</code></pre>