33.6k views
5 votes
Examine the following piece of code and determine the data type of the function's return value.

Function Real sum (Integer num1, Integer num2)
Declare Integer result Set result = num1 + num2
Return result
End Function

User Dezman
by
7.8k points

1 Answer

1 vote

Answer:

The data type of the return value is Integer

Step-by-step explanation:

Integer type follows the declare keyword, it is expected that the sum of two integers to be an integer too.