🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9187

Re: C Coding Question

#9187
From: karl
Date: Fri, 22 Aug 1986 17:46
12 lines
1027 bytes
>["type *" and "type []"] are IDENTICAL to virtually every C compiler ...
>Arrays in C are merely special cases of pointers.

You are wrong, but you've got a lot of company.

I almost wish the language had kept arrays and pointers completely separate,
requiring "&a[0]" to change an array into a pointer, and "*(p+n)" to index
from a pointer.  Or maybe "p@[n]", where "@" is some postfix operator that
converts a pointer into an array of unknown size.

Karl W. Z. Heuer (ihnp4!ima!haddock!karl), The Walking Lint
Technical Details
Message-ID: <86900025@haddock>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!ima!haddock!karl
References: <248@killer.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!ima!haddock!karl
From: karl@haddock
Newsgroups: net.lang.c
Subject: Re: C Coding Question
Message-ID: <86900025@haddock>
Date: Fri, 22-Aug-86 13:46:00 EDT
Article-I.D.: haddock.86900025
Posted: Fri Aug 22 13:46:00 1986
Date-Received: Fri, 22-Aug-86 22:15:15 EDT
References: <248@killer.UUCP>
Lines: 12
Nf-ID: #R:killer.UUCP:248:haddock:86900025:000:513
Nf-From: haddock!karl    Aug 22 13:46:00 1986