Respuesta :

Answer:

Program :

#include <stdio.h> //header file

char* isEven(int number) //function

{

   if(number%2==0)

    return "True";

  else

   return "False";

}

int main() //mainfunction

{

   printf("%s",isEven(43)); //calling and display output.

   return 0; //return statement.

}

Output:

  • The above program gives as 45 output.

Explanation:

  • The above program is in c-language, The above function is used to check the number is even or odd.
  • If the number is even it returns true and if the number is odd, it returns false.
  • The print statement called that function while passing the number on the argument and print the result of the function.
  • The char* is used in return type because the function returns the string value.