#include <iostream> using namespace std; int main() { char foo[5] = "hello"; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:5:16: error: initializer-string for array of chars is too long [-fpermissive]
char foo[5] = "hello";
^~~~~~~
Standard output is empty