C
Chameleon
The code is:
-----------------------------------------------
#include <cstdio>
#define S(X) printf(#X ": %d\n", sizeof(X));
class Seekable
{
public:
virtual void seek(int to, char from);
virtual int tell();
virtual int size();
};
int main() {
S(Seekable);
return 0;
}
-----------------------------------------------
#include <cstdio>
#define S(X) printf(#X ": %d\n", sizeof(X));
class Seekable
{
public:
virtual void seek(int to, char from);
virtual int tell();
virtual int size();
};
int main() {
S(Seekable);
return 0;
}