SyntaxFix
Write A Post
Hire A Developer
Questions
I think your assignment is backwards:
a[i] = b[i];
should be:
b[i] = a[i];