initialize array c++

C++
int arr[3] = {1, 5, 4};int nCount[] = {1, 2, 3, 4, 5};int foo [5];int foo [] = { 16, 2, 77, 40, 12071 };
Source

Also in C++: