Hi, I'm just wondering what would be a faster operation. I can either use a for loop like so:
Or, I can do it like so:Code:char a; char b; for (int i = 0; i < 1024; i++) a[i] = b[i];
memcpy(a, b, 1024);
And if I needed to start at a certain position I can use an offset added to the address:
memcpy(a, b+offset, 1024-offset);
So, what would be faster? I'm also interested in WHY, so if you know fill me in .