C 26 24 19 bytes
f(c,d){return!c+d;}
Ungolfed version:
int f(int c,int d)
{
return !c+d;
}
I hope I got the specification right. Can definitely be shortened!?
@Pavel Thanks for saving 2 bytes
@Neil Thanks for your input.