What is the output of the following C program on a 64-bit system?
#include <stdio.h>
struct point {
int x, y, z;
};
int main(void) {
struct point p = {.z = 3, .x = 1};
printf("%d %d %d\n", p.x, p.y, p.z);
return 0;
}
Designated initializers can come in any order. Members that are not named – here y – are set to 0, as with any initializer.