When is a return statement required inside a function?

A. Every function must include at least one return statement.
B. When you use a switch statement.
C. When a return datatype (other than void) is included in the function prototype.
D. Inside an if-else statement.


C

Computer Science & Information Technology

You might also like to view...

All of the following are file extensions for files created using Microsoft Office EXCEPT _____.

A. .docx B. .accdb C. .xlsx D. .bmp

Computer Science & Information Technology

When creating a data warehouse, ________ is the process that extracts data from source databases, reformats the data, and stores them in the warehouse

Fill in the blank(s) with correct word

Computer Science & Information Technology

AnĀ  abstract class is one that will not be instantiated.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Basic access control systems typically define three classes of subject: owner, __________ and world.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology