CS153/hw6/hw5programs/tc_correct_struct.oat

10 lines
125 B
Text
Raw Normal View History

struct T {
int f1;
int f2
}
int program(int argc, string[] argv) {
var x = new T { f1 = 3; f2 = 4 };
return x.f1;
}