Tuesday, June 19, 2012

Homework 8: Declarations

1. Write a statement that declares a prototype for a function  printErrorDescription , which has an  int parameter and returns nothing.

void printErrorDescription ( int ) ;

2. Write a statement that declares a prototype for a function  printLarger , which has two  int parameters and returns no value.

void printLarger ( int , int ) ;

3. Write a statement that declares a prototype for a function  twice , which has an  int parameter and returns an  int . 

int twice ( int ) ;

1 comment:

  1. 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.

    double powerTo(double, int);.

    ReplyDelete