Why is the following ok?
char *a;
char b[]="asdf";
a=b;
But the following is not?
char a[10];
char b[]="asdf";
a=b;
The above gives error: incompatible types in assignment.
Both are not ok.
Maybe you were attempting ,
char *a;
char b[]="asdf";
a=b;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With