function modify(y,z)
{
y=y+1;
Z=Z + 1;
return y-Z
}
function calculate()
{
integer a = 5, b = 10,
C=modify(a, b)
print a
print space
print c
}
Answers
Answered by
4
Answer:
here this your answer
Explanation:
make a brilliant
Attachments:
Answered by
6
The output of the program is " 5 -5".
- First of all the function calculate is executed. Here, a is initialized to 5, and b is initialized to 10. Now these values of a and b are passed to the function modify()
- In the function modify(), the value of a and b are stored in the variables y and z. Now the values of y and z are both increased by 1 which makes the value of y=6 and z=11. Now, y-z (6-11= -5 ) is returned and the value is received in the variable c in function " calculate()".
- Now the value of a is printed (=5) and the value of c is printed (= -5) with a space in between.
Similar questions