Monday, December 8, 2008

C++ Code Example: Size of "Class with NO member and Method "

Sphere: Related Content #include <iostream>
using namespace std;

class zero{
   // int a;
   // char b[9];
};

int main()
{
      zero z;
      cout << "size of zero class " << sizeof(z) << endl;
      return 0;
}

No comments: