Example code for character array in C:
What will be the output of below C program?
a = "skill gun";
compile time error, lavalue required or incompatible type.
no error no output
compile time error, lavalue required or incompatible type. We can't change the array's base address. array is special kind of unmodifyable lvalue. that means once array is created no body can change the base address of array, which we are trying to do here. so it gives compile time error saying lvalue required.
Back To Top