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
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
Social Sciences,
6 days ago
History,
6 days ago
World Languages,
6 days ago
World Languages,
13 days ago
Math,
8 months ago
Hindi,
8 months ago