🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49828

Array syntax different from cfront-based compilers ?

#49828
From: Helmut Jarausch
Date: Tue, 21 Dec 1993 12:04
17 lines
1225 bytes
Please be patient if this is a FAQ, I haven't found it there.
/* ----------------------------------------------------
   this code compiles without problems on  AT&T cfront based compilers
*/
int main()
{ double  (*q)[5];
// assignment between incompatible pointer types why?
  q= new double[3][5];
  return 0;
}

Since I am teaching C++ I would be glad if anybody could tell
me what's wrong with it.
Thanks,
Helmut Jarausch
Institute of Technology
RWTH-Aachen, Germany
Technical Details
Message-ID: <2f6oo1$c31@urmel.informatik.rwth-aachen.de>
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!igpm.rwth-aachen.de!jarausch

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4ce18bb3e06a8b65,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-21 04:04:16 PST
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!igpm.rwth-aachen.de!jarausch
From: jarausch@igpm.rwth-aachen.de (Helmut Jarausch)
Newsgroups: gnu.gcc.help
Subject: Array syntax different from  cfront-based compilers ?
Date: 21 Dec 1993 12:04:17 GMT
Organization: Rechnerbetrieb Informatik - RWTH Aachen
Lines: 19
Distribution: world
Message-ID: <2f6oo1$c31@urmel.informatik.rwth-aachen.de>
NNTP-Posting-Host: numa1.igpm.rwth-aachen.de
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Keywords: array syntax