Computer Science, asked by Anonymous, 13 days ago

Write the prototype of a function SUM() for each of the following purpose:

a. To return an integer value.

b. To receive a character and an integer as parameters and no returning.

c. To receive one integer, ne double type argument and returns a double type value.

d. To receive an integer as parameter and returns true or false.

e. To receive a reference data for a class ‘Sample’ and returns an integer.

Answers

Answered by CataListvfx
1

Answer:

1)Int sum()

2)sum(char ch, int x)

3)double sum(int x, double y)

4)Boolean sum(int x)

5)int sum(Sample sample)

Explanation:

u are in my school and didnt ask me.

Similar questions