Complete the code to declare a reusable function that adds two integers.
int add(int a, int b) {
return a [1] b;
}The + operator adds two integers, which is what the function should do.
Complete the code to call the function add with arguments 5 and 3.
int result = [1](5, 3);
The function is named add, so calling add(5, 3) is correct.
Fix the error in the function prototype to ensure proper reusability.
int [1](int a, int b);The function prototype must match the function name exactly, which is add.
Fill both blanks to create a reusable function that multiplies two numbers and returns the result.
int [1](int x, int y) { return x [2] y; }
The function name multiply describes the operation, and the * operator multiplies the two numbers.
Fill all three blanks to create a reusable function that checks if a number is even and returns 1 if true, else 0.
int [1](int num) { if (num [2] 2 [3] 0) { return 1; } else { return 0; } }
!= instead of ==.The function name isEven clearly states its purpose. The modulus operator % checks the remainder, and == compares it to zero to determine evenness.