Author: lizhuolizhuo
Date: Dec 3, 2006 18:57
hi all:
who can tell me why the function ::f() returns the size of the variable C
not the size of type C?
// details/inject.cpp
#include
int C;
class C {
private:
int i[2];
public:
static int f() {
return sizeof(C);
}
};
int f()
{
return sizeof(C);
}
|