C

Designated initializers

Feature from C99:

brush: c
struct my_struct { int field1; int field2; };
struct my_struct s = { .field1 = 2, .field2 = 4 };

Fields can be given in any order. Fields can be omitted.

 

C++

 

Objective-C