case 3:
        Complement(a,m);

that is the function call in main function

void Complement(int a[10],int m)
{
    int i,k;
    int c[20]={0,1,2,3,4,5,6,7,8,9};
    for(i=0;i<=m;i++)
    {
        if(!a[] == c[])
    {
        printf("\n%d",c[20]);
    }

    }

}

Did you write a prototype for Complement() before main() or does the function appear in the source file before main() ? For example:

void compliment(int a[], int m); // Function prototype

int main()
{


}

void compliment(int a[], int m)
{


}

Oh yeah i had not mentioned the prototype. Thnank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.