Check with these questions if you understood this document
We would like to convert a function that returns the sum of two numbers, in another that returns the sum and, in an additional parameter, the subtraction. Choose the correct prototype
We would like to use the function multiple
that returns the multiplication of two numbers in an additional parameter.
This function assumes the previous allocation of the result parameter. Choose the correct function call, without using malloc
in the caller
program
We would like to use the function multiple
that returns the multiplication of two numbers in an additional parameter.
This function assumes the previous allocation of the result parameter. Choose the correct function call, using malloc
in the caller
program
We would like to implement the function multiple
that returns the multiplication of two numbers in an additional parameter.
This function assumes the previous allocation of the result parameter. Choose the correct function code
We would like to define a function, which given a number of students, returns a vector of integers initialized to the zero value. Choose the correct code.
We would like to define a function, which given a number n
, returns in a vector (given as parameter) of integers the first n
natural numbers, starting in the 0. The function must allocate space for the vector. Choose the correct code.