quadratic equation roots c function : The problem(C programming)
================================
Write a function that calculates the real and imaginary roots of the quadratic equation
ax^2 +bx+c = 0. You should handle the three types of roots.
Hint: use this function prototype:
𝒊𝒏𝒕 𝒄𝒂𝒍𝒄𝒖𝒍𝒂𝒕𝒆𝑹𝒐𝒐𝒕𝒔(𝒊𝒏𝒕 𝒂, 𝒊𝒏𝒕 𝒃, 𝒊𝒏𝒕 𝒄, 𝒇𝒍𝒐𝒂𝒕 ∗ 𝒓𝒐𝒐𝒕𝟏, 𝒇𝒍𝒐𝒂𝒕 ∗ 𝒓𝒐𝒐𝒕𝟐)
================================
my questions:
* how can a function solving quadratic equation returns an int?? 
I am clueless on what that means
** I changed the fuction return type to *void()* but I couldn't handle the 2 imaginary roots not sure how to return real+imag****i***
================================
here 's what I reached so far
================================

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    int calculateRoots(int a,int b,int c,float* root1,float* root2);
    int main()
    {
        float r1,r2;
        int a,b,c;
        printf("enter the coefficients :\n");
        scanf("%d%d%d",&a,&b,&c);
        printf("roots of equation are:%d and %d",calculateRoots(a,b,c,&r1,&r2));
        return 0;
    }
    void calculateRoots(int a,int b,int c,float* root1,float* root2)
    {   float x=b*b-4*a*c;
        if(x==0)
        {
            *root1=(-1*b)/(2*a);
            *root2=(-1*b)/(2*a);
        }
        else if(x>0)
        {
            *root1=(-1*b+x)/(2*a) ;
            *root2=(-1*b-x)/(2*a) ;
        }
        if(x<0)
        {
            root1=// Any help here
        }
    }

