Chapter - 4: Functions

Write function prototypes for the following:


C
Sections
6
Exercises

A

B

C

1

2

3

4

5

6

7

8

- A function which receives an int and a float and returns a double.
double fun(int, float);

- A function that receives as int pointer and float reference and returns an int pointer.
int* fun (int *, float &);

- A function which doesn't receive anything and doesn't return anything. 
void fun();

- A function that receives an array of ints, and a float reference and doesn't return anything.
void fun(int *, float &);


© 2020 Garbage Valuegarbage value logo