466 views

1 Answer

0 0 votes
The Number of time Call () function will be called=17

This is the tree:
Call(7)-->  Call(5),Call(4 )

Call(5)--> Call(3),Call( 2)  Call(4)--> Call(2),Call(1)

Call(3)--> Call(1) ,Call(0)   Call(2)--> Call(0),Call(-1)  Call(2)--> Call(0),Call(-1)  Call(1)--> Call(-1),Call(-2)

Call(1)-->  Call(-1),Call(-2)
• edited by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.7k
1.7k views
kallu singh asked Sep 8, 2018
1,690 views
Question:-Consider the following program fragmenta = 0 for (x = 1; x < 31; ++x) for (y = 1; y < 31; ++y) for (z = 1; z < 31; ++z) if (((x + y + z)%3) = =0) a = a + 1; pri...
0 0 votes
1 1 answer
1.0k
1.0k views
kallu singh asked Jan 17, 2019
1,017 views
0 0 votes
0 0 answers
490
490 views
0 0 votes
1 1 answer
4.5k
4.5k views
kallu singh asked May 20, 2018
4,535 views
Q. In an examination 43% passed in Math, 52% passed in Physics and 52% passed in Chemistry. Only 8% students passed in all the three. 14% passed in Math and Physics and...