M
M
mihzas2014-03-21 18:34:19
Delphi
mihzas, 2014-03-21 18:34:19

How does this piece of code work in Delphi?

In this function, the penultimate line is not clear.
function max(x:mas):real;
vars:real;
i:integer;
begin s:=abs(x[1]);
for i:=2 to 4 do
if abs(x[i])>s
then s:=abs(x[i]);
max:=s;
end;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
svd71, 2014-03-21
@mihzas

this string contains the name of the function. that is, the result that the function should return. it is also allowed to use the result variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question