Mail Archives: djgpp/2000/05/02/21:16:17
Hans-Bernhard Broeker wrote:
>
> Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net> 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____|
- Raw text -