If I have a function that performs some procedure and then needs to return the truth value of something is there a compelling reason to use either a boolean variable, or an int variable, as the return type?
bool Foo()
{
...
...
return truthValue;
}
int Foo()
{
...
...
return truthValue;
}
Is there an appreciable difference between these two functions? What are some potential pitfalls and advantages to both of them?
thanks,
nmr