562 views
0 votes
0 votes

I worked like this

If I see, return value t is t+p.

According to last definition of t, t=p*q=6*7.

So, t=p*q+p and return this t.

and I can directly evaluate that expression using 2 registers only.

So minimum register needed is 2.And infact, the program effect is same, even if I skip computing u,r,s.

But the correct answer is given 5.

I want to know if my approach is correct?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
saumya mishra asked Jun 13, 2018
319 views
I am always getting wrong answer in these type of questions how to solve them in a correct manner please explain????
1 votes
1 votes
1 answer
3
durgesh94 asked Jun 15, 2016
1,737 views
Which of the following feature(s) is/are needed to implement top down parsingSource string marker Prediction making mechanismMatching and Backtracking me...