Write a function definition called even that takes one argument of type int and returns a bool value. The function returns true if its one argument is an even number; otherwise it returns false.
What will be an ideal response?
```
bool even(int n)
{
return ((n % 2) == 0);
```
Computer Science & Information Technology
You might also like to view...
What is the fourth step in logical troubleshooting?
A) Establish a theory of probable cause (question the user). B) Test the theory to determine the cause. C) Document findings, actions, and outcomes. D) Establish a plan of action.
Computer Science & Information Technology
Involving both software and hardware, what technology is meant to protect digital content and prevent piracy?
A. HDMI B. DRM C. PPM D. DVI
Computer Science & Information Technology