/* illegal-1.c Demonstrates an illegal attempt to assign a new value into an array's name. An array's name is not a variable or an l-value. An l-value is an expression that can appear on the left side of an assignment statement. An array's name is an immediate value from the compiler. This immediate value is to be used as if it is a pointer constant containing the address of the first element of the array. */ #include #include #include int main() { int arr1[5]; int arr2[5]; arr1 = arr2; return EXIT_SUCCESS; }