prev

SELF TEST 23: Answers
Why is the following procedure declaration incorrect?


	procedure Wrong ( A : integer; var B : integer );
	var   A : integer; B : real;


	Self Test .. why is it wrong?
	Variable A, accepted inside the parenthesis, is then redeclared
	Same goes for variable B


Copyright B Brown/P Henry, 1988-1999. All rights reserved.
prev