in Compiler Design retagged by
1,000 views
0 votes
0 votes

in Compiler Design retagged by
1.0k views

3 Comments

B?
0
0
p->level1    Q->level

this type of methods are called backpatching
1
1
P:Level1 and Q: Level,

in while loop, condition satisfies, then executes some statement and come back to loop again ==> Q = level.
0
0

2 Answers

1 vote
1 vote
Best answer
while loop is saying if condition is true go inside the loop else exit loop

so P= level 1

      Q= level

is doing same thing.

Ans:B
selected by
0 votes
0 votes
P: Level1 Q: level

when if() statement is true it will goto P=Level1 and compute its value and again check for the next condition so Q=Level else end the loop and goto last.