Given the following function header, compose a C++ programming statement that calls the function, passing the value 15 as an argument and assigning its return value to a variable named result.
"int result= doubleIt(15);" is the correct answer for the above question
Explanation:
The function in a c++ programming is used to perform some specific tasks for the user. If a user wants to use any function, Then there is needs to do three things, which are as follows:-
Firstly, there is needs to give the prototype for any function,
Then there is a needs to define the function body.
Then there is needs to call the function
The function can be called by the help of " data_type variable_name = function_name (argument_list);" syntax in c++.