I know this is legal in the body of int main()
if( test == 1){
++count;
}
my question is the {,} required in a function body of the if statement, because in my book's example all I see is this:
double test(double a, double b)
{
double test, sum;
//is {,} required for this one?
if(test ==2)
a = 2.0;
b = 2.0;
sum = a + b;
return(sum);
}