comma operator

Andrew Koenig ark at alice.UUCP
Tue Aug 15 06:51:48 AEST 1989


In article <2300 at oakhill.UUCP>, stevenw at oakhill.UUCP (Steven Weintraub) writes:

> while ((ch = getchar()), ch != EOF && ch != '\n')

I don't see any obvious reason that this is better than

	while ((ch = getchar()) != EOF && ch != '\n')

Do you?
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list