MskoDestny wrote:
char string1[] "Hello ";
char string2[] "World\n";
char * tmp;
tmp = string1;
string1 = string2;
string2 = tmp
Yiekes!
To be honest this won't even compile.
Array names CAN BE CONVERTED to pointers, but are not equally pointers. So impressions, like string1 = string2 or string2 = tmp won't go, sorry.
Happy compiling
PiR