Recent questions tagged ullman

3 votes
1 answer
96
0 votes
1 answer
101
0 votes
0 answers
103
0 votes
0 answers
104
0 votes
1 answer
106
Construct recursive-descent parsers, starting with the following grammars:$S\rightarrow +SS \mid -SS \mid a$$S\rightarrow S(S)S \mid \epsilon$$S\rightarrow 0S1 \mid 01$
0 votes
0 answers
107
1 votes
0 answers
110
0 votes
1 answer
118
What is printed by the following C code?#define a (x+1) int x = 2; void b() {x = a; printf("%d\n",x);} void c() {int x = 1; printf("%d\n"),a;} void main() {b(); c();}
0 votes
0 answers
120
For the block-structured C code, indicate the values assigned to $w,x,y$ and $z$.int w,x,y,z; int i = 3; int j = 4; { int i = 5; w = i + j; } x = i + j; { int j = 6; i =...