Assume that an integer and a pointer each takes 4 bytes. Also, assume that there is no alignment in objects.
Predict the output following program.
#include<iostream>
using namespace std;
class Test
{
static int x;
int *ptr;
int y;
};
int main()
{
Test t;
cout << sizeof(t) << " ";
cout << sizeof(Test *);
}