Braced array initialization
int
main
()
{
// The compiler automatically fills the remaining
// fields with 0 thanks to braced initialization.
int
arr[5]{2, 3, 4};
}
main
int main()
Definition:
OptionDocumentationGenerator.cpp:46
Here is the transformed code:
int
main
()
{
int
arr[5] = {2, 3, 4, 0, 0};
return
0;
}
Live view
Generated by
1.9.1