Not understanding

in the video the code is
c.name[0]=‘B’;
c.name[1]=‘M’;
c.name[2]=‘W’;

why we can not write
c.name[]=‘BMW’;

Hello @shivamgoel150,

You can not do it this way.

On executing the statement:
c.name=“BMW”;

error: incompatible types in assignment of ‘const char [4]’ to ‘char [10]’
Hope, it is clear now.