Add operator_precedence example

This commit is contained in:
Alex Hirsch 2020-02-13 23:25:22 +01:00
parent 8eaf560d0c
commit 7eee3ca736
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,14 @@
int main()
{
int x;
x = 4 + 3 * 5 + 6;
print_int(x);
print_nl();
int y;
y = 4 * 3 + 5 * 6;
print_int(y);
print_nl();
return 0;
}

View File

@ -0,0 +1,2 @@
25
42