TIP: Click on subject to list as thread! ANSI
echo: cis.tandy.coco
to: Jeff Dege 76426,211 (X)
from: Pete Lyall 76703,4230
date: 1990-05-05 13:35:08
subject: #3274-#C arrays

#: 3291 S10/Tandy CoCo
    05-May-90  13:35:08
Sb: #3274-#C arrays
Fm: Pete Lyall 76703,4230
To: Jeff Dege 76426,211 (X)

"A pointer to the base type of the array"... excuse me? Which C lingo are you
speaking?

Try this:

 ....
 int *ptr, woof[6][2];

 .....

 ptr = woof;

 function(woof, ptr);

 Now - when you get down to 'function()', are you telling me that
 woof != ptr ? Are you telling me that they both don't point to
 ints?

Just for clarification: the majority of the C work done in this forum is on the
6809 MW C Compiler, which is K&R based (almost to a fault), and limited. If
you're thinking about any ANSIfications, they simply just don't apply here
(unless you're talking about the later versions of the 68k flavors of the
compiler).

Pete

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.