strcpy(A, "Hello"); is what you need. You can't assign to arrays like that, except when you initialize it.
Also, if you're writing c++ code (even though it seems c), you can use a string class which would allow assignment and lots of other neat things.
while executing this line compiler create a const char array and return address of the first char.
so,
if A is a char * and your declaration is something like
char *A = "Hello";
then it work else it is wrong.
but if write char A[6] = "Hello";
Then compiler implicitly does the initialization as what you achieve by running the code below
A[i] = 'H';
A[i] = 'e';
A[i] = 'l';
A[i] = 'l';
A[i] = 'o';
A[i] = '\0';