#include <iostream>
#include <array>

void foo(constexpr int size) {
    std::array<int, size> foo = { 0 };
    foo.fill(5)
    std::cout << foo[2] << foo.size;
}

int main() {
    // std::array<int, 4> a = { 1, 2, 3 };
    // std::cout << a[2];
    foo(5);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: