Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!apple!snorkelwacker.mit.edu!ira.uka.de!smurf!artcom0!hb.maus.de!m.maus.de!Martin_Gaeckler From: Martin_Gaeckler@m.maus.de (Martin Gaeckler) Newsgroups: comp.lang.c Subject: Re: decalring large arrays Message-ID: <10652@m.maus.de> Date: 24 Jun 91 12:34:00 GMT Distribution: world,comp Organization: Maus Mailbox Netz - UUCP-Gateway Bremen Lines: 17 Hi, > void main ( void ) > { > char *TheArray=(char *)malloc(BIG_NUMBER); > char TheArrayAgain[]=TheArray; // Is this legal? > } No, it is NOT allowed to initialize an array with another array. The object TheArrayAgain is in fact an array and not a POINTER, what you need. You have to declare TheArrayAgain as char *TheArrayAgain = TheArray; and you may use it like an array (what you probably want). greetings from bavaria Martin