I want to add the value of a parameter to another parameter within a designated initializer, without having to define a separate variable to hold that value. Is this possible?
typedef struct {
int x;
int y;
} point;
int main() {
point p = {
.x = 1,
.y = x + 2 // I want to reference .x
};
}