Message-ID: <390F8297.D0F71F55@gtcom.net> From: Krogg X-Mailer: Mozilla 4.61 [en] (Win95; U) X-Accept-Language: en,en-US,en-GB,ja,af MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Array swapping. References: <390B75BB DOT 621F846A AT gtcom DOT net> <8emndg$b9s$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 48 Date: Tue, 02 May 2000 21:36:23 -0400 NNTP-Posting-Host: 12.16.179.184 X-Trace: eagle.america.net 957318015 12.16.179.184 (Tue, 02 May 2000 21:40:15 EDT) NNTP-Posting-Date: Tue, 02 May 2000 21:40:15 EDT Organization: 24hoursupport.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote: > > Krogg wrote: > > > I got 2 arrays of same type/size. > > > float abc[50][50]; > > float cba[50][50]; > > > how can i "swap" them? > > > so that abc[x][y] will now point to cba[x][y] and > > vice versa... > > You want them to 'point', so obviously you need pointers. :-) > [snip] the same/simular solution(s) have been posted,and they work great,thanks for your input. > > A side note: this is not really on-topic for this newsgroup. It's a > basic C question, and thus should be asked to comp.lang.c or a similar > group. B4 i lernt of this technique i thought that the solution was gonna be some kind of nonportable hack,so i thought best to post here. Thanks for your reply. BE cool, Krogg. -- |"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""| | `.`/""""""\,',' my sig is too big, | |SEE HIS ( / \ \' SEE HIS but its really cool. | | FACE \/<> <>\/ SMILE | | / W \ Visit my ascii art site: | | ,'\_|||||_/`. http://www.gtcom.net/~krogg/ascii/ | | ,',' ||| `.`. krogg DOT no DOT to DOT spam AT gtcom DOT net | |____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|