CSCI351-Week 4-Lecture 1-Exercises Solution
CSCI351-Week 4-Lecture 1-Exercises Solution
and Semantics
Pages: 182-183
b. bbbabb
c. bbaaaaabc
d. aaaaaa
b. acccbd
c. acccbcc
d. accd
e. ccc
b. Ada for
c. C++ if-then-else
d. C switch
Loop: …
goto loop
Out: …
I = min_val
I = I + 1
goto loop
Out: …
If <bool_exp> goto L1
goto L2
L1: stmts1;
L2: stmts2;
default: stmts2; }
goto L2
L1: stmts1
L2: stmts2