Give the three criteria for a correct recursive void-function.

What will be an ideal response?

a) The recursion terminates.
b) The stopping case performs the correct action for that case.
c) For each recursive case, if the recursive call perform the correct action for that case, then the entire case performs correctly.

Computer Science & Information Technology

You might also like to view...

Produce use case diagrams and a set of associated sequence diagrams for the University Accommodation Office case study documented in Appendix B.1.

What will be an ideal response?

Computer Science & Information Technology

Flash provides ____ sample libraries.

A. two B. three C. four D. six

Computer Science & Information Technology