M
Matrixinline
Hi All,
I know I am asking a dumb question but can you Please let me know
what should be the size of the class & its object? will the Objects
size will be different?
class Product
{
string m_sItem;
string m_sIteFile;
char m_oName[128]
map<string, string> m_oSubItem;
map<string, string> m_oLocalItem;
};
Product oProduct;
sizeof(oProduct)==sizeof(Product) ?? is this will be true?
If I calculate sizeof(Product) will this give me different anwser on
different system?
Thanks
Anup
I know I am asking a dumb question but can you Please let me know
what should be the size of the class & its object? will the Objects
size will be different?
class Product
{
string m_sItem;
string m_sIteFile;
char m_oName[128]
map<string, string> m_oSubItem;
map<string, string> m_oLocalItem;
};
Product oProduct;
sizeof(oProduct)==sizeof(Product) ?? is this will be true?
If I calculate sizeof(Product) will this give me different anwser on
different system?
Thanks
Anup