Given the following recursive function definition, what is the stopping case?
void towers(char source, char dest, char help, int numDisks)
{
if(numDisks<1)
{
return;
}
else
{
towers(source,help,dest,numDisks-1);
cout << "Move disk from " << source << " to " <
}
}
a. numDisks == 1
b. numDisks >1
c. numDisks < 1
d. numDisks =0
c. numDisks < 1
You might also like to view...
Select protocols that are used for e-mail processing.
a. ETP, FTP b. SMTP, POP3 c. SMTP, POP3, IMAP d. ETP, FTP, SMTP
Analyze the following code:
```
#include
Percent is a short term for per ________
A) 100 B) 1.00 C) 0.1 D) 0.01
By default, the ruler units are set to ____.
A. inches B. pixels C. picas D. bits