Error invalid operands to binary : <p>I am a beginner and I am using dev c++ . I am trying to write a function to determine which quadrant it lies in. Its fairly simple, but I am getting an error [Error] invalid operands to binary &lt;&lt; (have 'float' and 'int')</p>

<pre><code>#include &lt;stdio.h&gt;
int quadrant (float i, float j);
int main()
{
    float a,b;
    int c;
    scanf ("%f,%f",&amp;a,&amp;b);
    c=quadrant(a,b);
    printf("the given point lies in %d quadrant",c);
    return 0;
}
int quadrant (float i, float  j)
{
    if (i&gt;&gt;0 &amp;&amp; j&gt;&gt;0)
    return 1;
    else if (i&gt;&gt;0 &amp;&amp; j&lt;&lt;0)
    return 4;
    else if (i&lt;&lt;0 &amp;&amp; j&gt;&gt;0)
    return 2;
    else if (i&lt;&lt;0 &amp;&amp; j&lt;&lt;0)
    return 3;
    else
    return 0;
}
</code></pre>

<p>Is it because float numbers cant be used with binary operands?
I replaced floats with int, all the floats. This time when I compile I get error ID: return 1 status.
What is wrong with my code?</p>
