I have the question about this codec.
I know sizeof(struct baseball) = 16.
what's the sizeof(Yankees)?
Also,
What will these cout s yield?
cout <<Yankees[2].player;
cout <<Yankees[2].Bbp->player;
cout <<BigPointer+1);
#include <iostream>
using namespace std;
int main()
{
struct baseball
{
char *Player;
int Hrs;
float average;
struct baseball *Bbp;
};
struct baseball Yankees[]= {
"Mantle", 52, .313, Yankees + 1,
"Maris", 61, .291, Yankees + 2,
"Richardson", 23, .252, Yankees + 3,
"Boyer", 18, .301, Yankees + 4,
"Skowron", 31, .281, NULL},
*BigPointer = Yankees;
cout << sizeof(struct baseball);
cout <<"\n";
cout << sizeof(Yankees);
cout << "\n";
}