by Clubber · 9y ago · 0 comments
procedure ShowTime; // A procedure with no parameters
begin
// Display the current date and time
ShowMessage('Date and time is '+DateTimeToStr(Now));
end;
function Average(a, b, c : Extended) : Extended;
begin
// return the average of the 3 passed numbers
Result := Mean(a, b, c);
end;
Edit: thanks for the formatting tip.That's only 4 words.
It seems like a rather cruel interview question, now that it qualifies as uninteresting trivia.
If you worked in Delphi, it most certainly isn't trivia. It's like asking what does void mean in C type dialects or what does the = vs == do. It's not trivia, it's trivial.
I could answer this questions, but have a tendency for long, technical explanations. ;-)