CS153/hw6/oatprograms/easy_p3.oat

23 lines
308 B
Text
Raw Normal View History

string bar (int x, string y) {
var s = "This is a string";
var array = new int[]{1, 3};
var y = array[0];
return s;
}
void proc1 () {
proc2 ( );
return;
}
void proc2 ( ) {
proc1 ( );
return;
}
bool foo ( int x, int[] y ) {
var s = bar (x, "compilerdesign");
proc1 ();
return true;
}