[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

:: - Discussion

Home > > > MCQs Questions Discussion

44 / 200

Predict the output or error(s) for the following:

int zap (int n)
{
if (n<=1) then
zap=1;
else
zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap

A8

B9

C6

D12

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Wipro

Post Your Answer Here:     

No Discussion on this question yet!