188 views
1 votes
1 votes
F(){

F1(){

F2(){

F3(){ } } } }

Here for each function a new stack is used or single stack is used for all the functions

As per me Single stack could be enough Can some one please clarify me

1 Answer

1 votes
1 votes
only single stack is used for nesting function calls. it push on the same stack and pop in reverse order (LIFO)

Related questions

0 votes
0 votes
0 answers
1
Rohit Gupta 8 asked Dec 25, 2017
567 views
How many triangles are formed by selecting points from a set of 15 points out of which 8 are collinear?(a) 800 (b) 824 (c) 844 (d) 854
0 votes
0 votes
1 answer
2
radha gogia asked Nov 11, 2015
1,349 views
Now I have 2 even positions and 2 odd positions and I have 3 even numbers 2 ,4 ,4 and 2 odd numbers so one odd position will be occupied by an even number but then even n...
0 votes
0 votes
1 answer
3
radha gogia asked Jul 28, 2015
689 views
If any infix expression has embedded function calls in it then how many stacks will it require for computing postfix expression , does it depend on the number of function...