Why can't two character arrays directly be equated?

Why can’t we just do price=p instead of using strcpy() ?

like integer array, char array cannot be compared
to compare them u`ll have to use a for loop

the same reasoning for char array goes as that for int array
u can read about int array from the below link

hence u need inbuilt function like strcpy to compare char array

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.