mixing pointers and arrays

Ken Turkowski ken at turtleva.UUCP
Wed Aug 17 11:32:00 AEST 1983


Now, wait a minute, Andrew Klossner, there are some reasons for passing
structures, and they are very natural.  Suppose your numbers were
rational numbers, that is, each number is composed of a numerator and
denominator.  Then it makes sense to pass the structure { int num, den; }
to processing routines.  Similarly with complex numbers { double re, im; },
two dimensional coordinates { int x, y; }, polar coordinates
{ double r, theta}.
			Ken Turkowski
		    CADLINC, Palo Alto
		{decwrl,amd70}!turtlevax!ken



More information about the Comp.lang.c mailing list