C problems

Andrew Koenig ark at alice.UUCP
Mon Jun 5 13:01:45 AEST 1989


In article <124200016 at inmet>, porges at inmet.UUCP writes:

>     Since noone else jumped in on this:  char **argv and char *argv[] are NOT
> the same thing in delcarations.

True; except for declarations of formal parameters.

That is:

	void f(x) char *x; { /* stuff */ }

means precisely the same thing as

	void f(x) char x[]; { /* stuff */ }

but

	void f() { char x[10]; }

is different from

	void f() { char *x; }

-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list