I want to ask if i can return more than one value using function. when i make a function that is not necessarly returning one value like the swap functin,I'm not sure how to deal with it.Because in the end i want to return the two variables, let us consider them x and y
To explain more i tried to do this little function:
Function Swap(x:integer,y:integer)
Variables
temp:integer
Begin
temp=x
x=y
y=temp
return x,y
the thing that I'm not sure about is if i have the right to** return more than one value**?