CS153/hw6/oatprograms/easy_p3.oat
jmug cfe502c598 Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 18:59:28 -08:00

22 lines
308 B
Text

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;
}