subject

Public static int func2(int m, int n) {
if (n == 0)
return 0;
else
return m + func2(m, n - 1);
}
1. Which of the following statements about the code in the accompanying is always true?
a. func2(m, n) = func2(n, m) for m >= 0
b. func2(m, n) = m * n for n >= 0
c. func2(m, n) = m + n for n >= 0
d. func2(m, n) = n * m for m >= 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Can you make money in why are you guys so
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
You know the right answer?
Public static int func2(int m, int n) {
if (n == 0)
return 0;
else
retur...
Questions
question
Mathematics, 14.04.2021 18:50
question
Chemistry, 14.04.2021 18:50
question
Chemistry, 14.04.2021 18:50
Questions on the website: 13722363