Examlex

Solved

How Many Times Will the Following Function Call Itself If \quad

question 18

Multiple Choice

How many times will the following function call itself if 5 is passed as the argument?
Void showMessage(int n)
{
\quad If (n > 0)
\quad {
\quad\quad Cout << "Good day!" << endl;
\quad\quad ShowMessage(n - 1) ;
\quad }
}


Definitions:

Dividends

Payments made by a corporation to its shareholder members; it is the portion of corporate profits paid out to stockholders.

Average Collection Period

The average time it takes for a business to receive payments owed by its customers, indicating the effectiveness of its credit and collection policies.

Balance Sheet

A statement that presents an organization's assets, liabilities, and the equity of its shareholders at a distinct point in time.

Sales On Account

Transactions where goods are sold but payment is deferred to a later date.

Related Questions