Functions that do not have a return type are called ____ functions.

A. zero
B. null
C. void
D. empty

Answer: C

Computer Science & Information Technology

You might also like to view...

Suppose the input for number is 9. What is the output from running the following program?

``` #include using namespace std; int main() { cout << "Enter an integer: "; int number; cin >> number; int i; bool isPrime = true; for (i = 2; i < number && isPrime; i++) { if (number % i == 0) { isPrime = false; } } cout << "i is " << i << endl; if (isPrime) cout << number << " is prime" << endl; else cout << number << " is not prime" << endl; return 0; } ``` A. i is 3 followed by 9 is not prime B. i is 3 followed by 9 is prime C. i is 4 followed by 9 is prime D. i is 4 followed by 9 is not prime

Computer Science & Information Technology

Why is the analysis often for the worst case?

A. Best-case is not representative. B. Average-case analysis is ideal, but difficult to perform, because it is hard to determine the relative probabilities and distributions of various input instances for many problems. C. Worst-case is not representative, but worst-case analysis is very useful. You can show that the algorithm will never be slower than the worst-case.

Computer Science & Information Technology