230k views
1 vote
Code the function definition for aNonclassFunction, picking up co. aNonclassFunction has no return value.

a)void aNonclassFunction (co);

b)void aNonclassFunction (Banana co);

c)void aNonclassFunction (* co);

d)void aNonclassFunction (Banana * co);

1 Answer

4 votes

Answer:

b)void aNonclassFunction (Banana co);

Step-by-step explanation:

In the function definition you have to pass the tell the function which type of argument it is taking.In our case we are taking a variable co of Banana type passing it to the function named aNonclassFunction having no return type.

So the definition will be like this.

void aNonclassFunction (Banana co);

User Samuel Yung
by
7.0k points