| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/ron-che-debugger/MiniJava-Compiler/main/test/src6 | [Back] [Original] |
/* ex6: function calls with parameters */
program ex6;
class c6
{
method int product(int p; val int x, y)
{
p := x * y;
return p*p;
}
method void main()
declarations
int x, p;
enddeclarations
{
p := 0;
x := product(p, 3, 4);
System.println(p);
System.println(x);
}
}
| Web Proxy Viewer | New URL | Original Page |