#include <iostream> int main() { int x[10]{1, 2, 3, 4, 5, 6}; int y[8]{2, 4, 8, 16, 32, 64, 128}; x = y; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7:6: error: incompatible types in assignment of ‘int [8]’ to ‘int [10]’ x = y; ^
Standard output is empty