Path: utzoo!attcan!uunet!ncrlnk!ncrcae!ece-csc!ncsuvx!gatech!uflorida!haven!rutgers!bellcore!clyde!watmath!onfcanim!dave
From: dave@onfcanim.UUCP (Dave Martindale)
Newsgroups: comp.lang.c
Subject: Re: Passing sizes of arrays without a separate argument for the length
Message-ID: <16218@onfcanim.UUCP>
Date: 21 Sep 88 04:48:00 GMT
References: <8809191507.AA17512@ucbvax.Berkeley.EDU>
Reply-To: dave@onfcanim.UUCP (Dave Martindale)
Organization: National Film Board / Office national du film, Montreal
Lines: 20

In article <8809191507.AA17512@ucbvax.Berkeley.EDU> U23405@UICVM (Michael J. Steiner) writes:
>
>AFTER (MY IDEA) : - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>main()
>{
>     char array[10];
>     ...
>     array[0] = 10;
>     somefunc(array);
>}

Hmm, how about

	char array[256];

	array[0] = 256;

Assuming you have 8-bit bytes, this doesn't work very well.
In fact, if you have signed characters, any char array of length >= 128
doesn't work.