1
votes

Giving the following function in Pascal where GetChar is another function. How is GetChar executed after the function returns with the := operator?

function GetNum: char;
begin
   GetNum := Look;
   GetChar;
end;
1

1 Answers

5
votes

The assignment in Pascal doesn't return, it is just an assignment. So GetChar will be executed.