I was going through the C++ Object model when this question came. What are the default values for the data members of a class if the default constructor is invoked?
For example
class A
{
int x;
char* s;
double d;
string str; // very high doubt here as string is a wrapper class
int y[20];
public :
void print_values()
{
cout<<x<<' '<<s<<' '<<d<<' '<<str<<' '<y[0]<<' '<<y<<endl;
}
}
int main()
{
A temp;
temp.print_values(); // what does this print?
return 0;
}