20.02.2014, 19:36
Yes, you can copy strings like that, under the condition that the number of dimensions is the same and that the size of the array on the left is equal or greater than the size of the array on the right.
In this particular case, however, the number of dimensions isn't the same so direct assignment does not work.
pawn Код:
new test1[] = "hello world";
new test2[12];
test2 = test1;
printf("test2 = \"%s\"", test2);