www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/12/12:36:34

From: Waldemar Schultz <schultz AT ma DOT tum DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: array casting
Date: Fri, 12 Jan 2001 18:33:04 +0100
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 18
Message-ID: <3A5F3FD0.FA33C29B@ma.tum.de>
References: <3A5F2E12 DOT 9A6C50FC AT ma DOT tum DOT de> <93ndcm$l5q$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: pcritter10.mathematik.tu-muenchen.de
Mime-Version: 1.0
X-Trace: wsc10.lrz-muenchen.de 979320784 1144 131.159.69.74 (12 Jan 2001 17:33:04 GMT)
X-Complaints-To: news AT lrz-muenchen DOT de
NNTP-Posting-Date: 12 Jan 2001 17:33:04 GMT
X-Mailer: Mozilla 4.73 [de]C-CCK-MCD DT (Win98; U)
X-Accept-Language: de,en,en-US
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tom St Denis schrieb:
> You can't allocate int x[][2] in C.  It's invalid since the compiler doesn'ty
> know how manythere are.
what I intended of course allocte x[n][2] with n not constant, I did this
before.
 
> passing myfunc(int a[]) is bad form... instead myfunc(int *a) is clearer.
I know, but that's the libraries prototype I have to live with.

> BTW this is OT for this group.
sorry about that, but I dared to ask, where the answers really could be given.

Thank you.

-- 
 Gruss Waldemar Schultz.
 Technische Universität München, Zentrum Mathematik M1, D 80290 München
 Tel: +49 (0)89 2892 8226        FAX: +49 (0)89 2892 8228

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019