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.
You might also like to view...
The effectiveness of data mining will be ________ by cleaning up data that has been compromised
Fill in the blank(s) with the appropriate word(s).
?Choose the sentence that demonstrates correct punctuation.
A. ?"Try to learn something about everything and everything about something," wrote Thomas H. Huxley. B. ?Try to learn something about everything and everything about something, wrote Thomas H. Huxley. C. ?"Try to learn something about everything and everything about something", wrote Thomas H. Huxley.
A sniffer program can reveal data transmitted on a network segment, including passwords, the embedded and attached files-such as word-processing documents-and sensitive data transmitted to or from applications.
Answer the following statement true (T) or false (F)
In the figure above, the number 1 points to what?
What will be an ideal response?