Show the output of the following code:

```
#include
#include
using namespace std;

class A
{
public:
A(): i(5), s("abc")
{
};

int i; // Declare a data field of the int type
string s; //Declare a data field of the string type
};

int main()
{
A a;
cout << "s is " << a.s.data() << endl;
cout << "i is " << a.i << endl;

return 0;
}
```

The program displays s is abc followed by i is 5.

Computer Science & Information Technology

You might also like to view...

Describe tiles

What will be an ideal response?

Computer Science & Information Technology

To display basic statistical information about a document, such as file size and number of pages, you would:

A) check the status bar. B) select Custom Properties. C) click the File tab and select Info. D) show the Document Panel.

Computer Science & Information Technology