void fun(char arr[]){
cout<<arr;//successfully received and printed
}
main(){
char *ptr="hello";
fun(ptr);
/*
char arr2[]=ptr; throws error....initialiser fails to determine size of arr2
*/
getch();
}`
Why am I allowed to pass a char pointer and receive it in array,but can not directly assign char pointer to array.As far I know,assignment takes place implicitly when we pass parameters to a function.So why is this difference in behavior?