Custom compare function for sort() works without argument(c++) : <p>Why the custom compare function for sort() works without argument(c++)?</p>

<pre><code>void show(int a[])
{
    cout&lt;&lt;endl;
    for(int i=0;i&lt;10;i++)
    {
        cout&lt;&lt;a[i]&lt;&lt;endl;
    }
}
bool compare(int a,int b)
{
    return a&gt;b;
}
int main()
{
    int a[10]={12,32,45,22,643,53,53,32,4,32};
    sort(a,a+10,compare);
    show(a);
    return 0;
}
</code></pre>

<p>Thank you</p>
