M
mark
Hello,
I have two variables:
bool oldValues[2] = {true, false};
bool newValues[2] = {false, false};
Now I would like to copy to oldValues the values from newValues. I
don't want to copy it one by one (using for) but just copy the address
in memory which points to newValues into oldValues. How can I do that?
btw. Is it possible to inicialize such array in the presented way (i.e.
using = {true, false} ) after initialisation, i..e bool values[2];
values = {true, false} doesn't work, but maybe there is another way to
do it without for)??
Thank you very much, marko
I have two variables:
bool oldValues[2] = {true, false};
bool newValues[2] = {false, false};
Now I would like to copy to oldValues the values from newValues. I
don't want to copy it one by one (using for) but just copy the address
in memory which points to newValues into oldValues. How can I do that?
btw. Is it possible to inicialize such array in the presented way (i.e.
using = {true, false} ) after initialisation, i..e bool values[2];
values = {true, false} doesn't work, but maybe there is another way to
do it without for)??
Thank you very much, marko