(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...
When an organization wants to develop a new information system to meet its needs, it can _________.
A. buy software off the shelf B. build a custom application C. ?choose a software service provider D. all of these answers
A(n) ____________________ list tag creates a list of numbered items.
Fill in the blank(s) with the appropriate word(s).
The simplest version of a sitemap file contains only _______.
A. text B. graphics C. tags D. CSS properties
On a laptop, which of the following is the name of the socket that a wireless card would typically be inserted into?
A. PCIe B. AGP C. Mini PCI D. PCI