char name[10]="James"; //valid statement
char name[10];
strcpy(name,"james"); //valid statement
char name[10];
name[10]="james"; //invalid statement
*name="james"; // invalid statement
For above mentioned both invalid statment it says "error: assignment makes integer from pointer without a cast"
The error message is not clear. What is integer here? Which pointer is getting converted to integer.
char name[10];
name="james"; //invalid statement
error: incompatible types when assigning to type char[10] from type char
Please explain the error message to me. What exactly they ment.