Intialize the whole array with int 1 [duplicate]

  arrays, c++, compiler-construction

I found the similar question but it is for GCC compiler and I am using clang.
I want to intialize the whole array with integer 1(C++ std=17).

std::cout<<a[5] ; // I want it to print 1

Source: Windows Questions C++

LEAVE A COMMENT