#include <iostream>using namespace std; int main() { const int foo[2] = {13, foo[0] + 42}; for(const auto& i : foo) cout << i << ' ';}
Standard input is empty
13 55
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!