Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!dcl-cs!strath-cs!paisley!rh From: rh@cs.paisley.ac.uk (Robert Hamilton) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Assigning to Pointers Message-ID: <311@paisley.ac.uk> Date: Fri, 1-May-87 11:00:32 EDT Article-I.D.: paisley.311 Posted: Fri May 1 11:00:32 1987 Date-Received: Thu, 7-May-87 04:57:56 EDT References: <3537@vrdxhq.UUCP> Sender: rh@paisley.ac.uk Reply-To: rh@cs.paisley.ac.uk (Robert Hamilton) Organization: Paisley College of Technology Scotland. Lines: 31 Xref: mnetor comp.sys.ibm.pc:3784 comp.lang.c:2064 In article <3537@vrdxhq.UUCP> tom@vrdxhq.UUCP (Tom Welsh) writes: > >This may be a dumb question, but could someone please explain >to me how I assign an absolute address to a pointer to an array? > >I'm trying to overlay various structures and arrays at different >times on top of the physical page frame in EMM. > >I'm using MSC 4.0 > >I want to do the following : > > >int *aa[]; > > >aa = 0x50000; This is an old one. int *aa[] is actually a *constant* So you cant assign to it. Try int **aa; aa= (int **) 0x50000; This should be ok. Subtle difference between *aa[] and **aa !! -- JANET: rh@uk.ac.paisley.cs EMAIL: rh@cs.paisley.ac.uk | Post: Systems manager. UUCP: ...!seismo!mcvax!ukc!paisley!rh | Department of Computing, Phone: +44 41 887 1241 Ext. 219 | Paisley College | High St. Paisley. | Scotland. | PA1 2BE