#include <iostream> void f(int size){ char c[size]; c[5] = 'X'; std::cout << c[5];} int main(){ f(10); return 0;}
Standard input is empty
X
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!