CS153/hw5/hw5programs/compile_local_fptr.oat

10 lines
148 B
Text
Raw Normal View History

int add(int x, int y) {
return x + y;
}
int program(int argc, string[] argv) {
var plus = add;
var loc_add = plus;
return loc_add(2, 3);
}