#include <stdio.h> int main(void) { int s[] = {1, 2, 3}; int t[] = {3, 2, 1}; s = t; return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:6:7: error: assignment to expression with array type s = t; ^ prog.c:4:6: error: variable 's' set but not used [-Werror=unused-but-set-variable] int s[] = {1, 2, 3}; ^ cc1: all warnings being treated as errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!