in Compiler Design
339 views
0 votes
0 votes

https://gateoverflow.in/849/gate2002-2-19

In case of with embedded function calls, we need stack of size >=2, not exactly two, bcoz the functions can be recursive also.

this is true ??or exaclty two is correct ?? i think >=2 is correct ..........what is correct answer??

in Compiler Design
by
339 views

3 Comments

Even if there is recursion one stack is sufficient to handle function calls and another is for expression evaluation.
0
0
how ?? can u explain using a little example becz i am not getting the way while there is function inside function and we can only evaluate  any expression using stack if it is first converted into post fix
0
0
Refer the example given by Saxena in that question.
0
0

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
gateexplore asked in Compiler Design Nov 17, 2023
85 views
gateexplore asked in Compiler Design Nov 17, 2023
85 views