235k views
5 votes
Write a statement that declares a prototype for a function powerTo, which has two parameters. The first is a double and the second is an int. The function returns a double.

User NicJ
by
8.1k points

1 Answer

3 votes

Answer:

Following are the statement of the program in the C++ Programming Language.

//prototype of the function

double powerTo (double, int);

Step-by-step explanation:

In the following statement which is written in the C++ Programming Language.

  • The function prototype tells us what type of data type return by that function.
  • We declare the prototype of the function "powerTo()" which returns the double and pass two arguments first one is double data type and the second one is integer data type.
User Simon Schoelly
by
7.8k points