This function returns:
```
1 bool search( Node
2 {
3 if ( ptr == NULL )
4 return false;
5 if ( ptr->info == dove ) {
6 bird = ptr->info;
7 return true;
8 }
9 return search( ptr->next, bird, dove );
10 }
```
which is called for a linked list (where start points to the first node) using the lines of code:
```
if ( search( start, bird, dove ) )
cout << “search successful” << endl;
```
A. true if the linked list is empty
B. false if a dove is found in the list
C. true if the linked list does not contain a dove
D. None of the above
1
You might also like to view...
Which of the following is not a step in the process to create a router on a stick?
a. Assign IP addresses b. Define encapsulation c. Link using switch access port d. Create subinterfaces
What are the values of a list index at the head and tail of the list, respectively?
A. 0, n-1 B. 1, n C. 0, n D. n-1, 1
____ is a policy where manufacturers are responsible for the entire life cycle of their products and packaging, including recycling.
A. Green Grid Alliance B. Energy Star Alliance C. Paperless Library D. Extended producer responsibility
In most large organizations, the journal voucher file has replaced the formal general journal.
Answer the following statement true (T) or false (F)