Code:
#include <iostream>
using namespace std;

bool isEven(int);

int main()
{
	int val;

	cout << "Enter an integer and I will tell you ";
	cout << "if it is even or odd: ";
	cin  >> val;
	
	if (isEven(val))
		cout << val << " is even.\n";
	else
		cout << val << " is odd.\n";
            
            return 0;
}

bool isEven(int number)
{
	bool status;

	if (number % 2)
		status = false; 
	else
		status = true; 
	
	return status;
}
Can someone explain the status being false or true in the function definition? I thought it would be the other way around.