(Recursive main) Can main be called recursively on your system? Write a program contain- ing a function main. Include static local variable count and initialize it to 1. Postincrement and print the value of count each time main is called. Compile your program. What happens?
What will be an ideal response?
```
// Recursively calling main
#include
using namespace std;
int main()
{
// static local variable count, initialized to 1
static int count = 1;
cout << count++ << endl; // postincrement and print value of count
main(); // call main recursively
} // end main
```
You might also like to view...
YaST can be used with GUI interfaces.
Answer the following statement true (T) or false (F)
EX Case 4-1Zane is preparing his senior project for submission. He has kept all of the files for this project in an Excel workbook. He needs to edit it before turning it in. Zane wants to enter or edit data on several worksheets at a time. To select all the worksheets in his workbook, he would right-click a workbook tab, then click ____ on the shortcut menu.
A. All B. [Shift] C. Group D. Select All Sheets