0

There is an error. C++.

Module 4 Quiz 3 Stuck? Translate course Fill in the blanks to create a function that multiplies its parameter by 2 and returns the result. double(int x) { return x * 2; } Check

18th May 2024, 4:40 PM
Div Anand
Div Anand - avatar
1 Answer
+ 4
in c++ we need to specify the return datatype of the function. it has to be done as first part of the function header.
18th May 2024, 7:43 PM
Lothar
Lothar - avatar