In C++20 we get C99 designated initializers. Given
— Shafik Yaghmour (@shafikyaghmour) June 15, 2018
struct A { int x; int y; int z; };
Which are valid C++20
A. struct A b = {.x=1, .y=1, .z=2};
B. struct A b = {.x=1, .z=2};
C. struct A a = {.y=2, .x=1};
D. int arr[3] = {[1]=5};#cplusplus #cpp20 #programming