int and float division giving 0 as output
===

    int main(void)
    {
    int x;
    float y;
	
    x=10;
    y=4.0;

    printf("%d\n",x/y);

    return 0;
    }

I'm excuting this code using a gcc comiler and getting 0 as o/p.
Why this code giving o/p as 0 instead of 2? 