"assignment makes integer from pointer without a cast -wint-conversion" : <p>I am new to c language and I wanted to make a calculator so I wrote this code:</p>

<pre><code>#include&lt;stdio.h&gt;
void main()
{
    int x,y,z;
    char m;
    printf("enter the first number");
    scanf("%d",&amp;x);
    printf("enter the second number");
    scanf("%d",&amp;y);
    printf("enter the math operator");
    scanf("%c",&amp;m);
if (m == '+')
{
    z=x+y;
    printf("the answer is %d",z);

}
else if(m == '-')
{
    z=x-y;
    printf("the answer is %d",z);
}
else
{
    printf("wrong symbol");
}
    }
</code></pre>

<p>when I run the program it will ignore</p>

<pre><code>scanf("%c",&amp;m);
</code></pre>

<p>and </p>

<pre><code>if (m == '+')
{
    z=x+y;
    printf("the answer is %d",z);

}
else if(m == '-')
{
    z=x-y;
    printf("the answer is %d",z);
}
</code></pre>

<p>and it will go straight to</p>

<pre><code>else
    {
        printf("wrong symbol");
    }
</code></pre>

<p>and it shows like this: <a href="https://i.imgur.com/QQF8ftg.jpg" rel="nofollow noreferrer">https://i.imgur.com/QQF8ftg.jpg</a>
please help.</p>
