I'm sure there's a few million threads on these.... and I'm sorry for bugging you folks again.
Here's the deal. I've got two arrays that are going to be interchanging. But it's specified I have to use pointers to swap them instead of doing it the easy way and using a temp variable to do the swap. Here's what I've got...
Code:
int one[(arbitraty number];
int two[(same arbitrary number)];
int* addrhldr;
//For first element swap.
addrhldr = &one[0];
&one[0] = &two[0];
&two[0] = addrhldr;
It's coming up with errors for the last two lines:
non-lvalue in assignment. I pulled it off somewhat like this once, but then I screwed with the code and now I want to bash my head into something because of this... Any help's appreciated.