Complete the code to declare a function that takes one integer parameter.
void printNumber([1] num) { printf("%d\n", num); }
The function parameter should be of type int to accept an integer.
Complete the function call to pass the variable correctly.
int value = 10; printNumber([1]);
The function expects an integer value, so pass the variable value directly.
Fix the error in the function definition to accept two integer parameters.
void addNumbers(int a, [1] b) { printf("%d\n", a + b); }
Both parameters should be of type int to add two integers.
Fill both blanks to declare a function that returns the sum of two integers.
[1] add([2] a, int b) { return a + b; }
void as return type when a value is returned.The function returns an int and both parameters are int types.
Fill all three blanks to declare and call a function that multiplies two floats and returns the result.
[1] multiply([2] x, [3] y) { return x * y; } float result = multiply(2.5f, 4.0f);
int or double instead of float.void as return type when a value is returned.The function returns a float and both parameters are float to multiply decimal numbers.
