No swap needed.....

Bryon Lape wozniak at utkux1.utk.edu
Fri Jun 29 00:34:10 AEST 1990


	I finally came to the realization that C needs a concurrent
assignemnt statement.  The syntax would be like the following:

	x,y,z = 1,2,3;

	which would make x=1, y=2, and z=3.  This would also be used to
swap values, such as:
	
	x,y = y,x;

	This would be equivalent to the following:
	  z = x;
	  x = y;
	  y = z;


-bryon lape-



More information about the Comp.lang.c mailing list