C++11: Initializer lists

If you want to declare and initialize an array of five integers, you could do something like:

int a[] = { 10, 20, 5, 45, 22 };

Continue reading “C++11: Initializer lists”

Advertisements