53.8k views
0 votes
What's the difference between a Boolean function and a Boolean expression?

User Tyrike
by
5.0k points

1 Answer

4 votes

Step-by-step explanation:

A boolean function is a function in any programming language whose return type is boolean means a function that returns true or false.For ex:-

bool func(int a,int b)

{

if(a>b)

return true;

else

return false;

}

An expression is a combination of one or more variables,constants,operators,function and which is computed and produces a value in case of boolean expression the value that is calculated is either true or false.

for ex:- bool result= a>b && a>c;

User RealCheeseLord
by
5.2k points