sizeof in C++
Sizeof is a unary operator in C and C++. It generates the storage size of an expression or a data type, measured in the number of char-sized units. * sizeof (char) is guaranteed to be 1. * sizeof(string) is stelen(string) + 1. * Static data members do not contribute in size of an object. Also, all functions (static and non-static both) do not contribute in size.