#include
class c{
public:
char f;
};
static class sss: public c{
public:
long m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf ("
#include
static struct sss{
long f;
long long a[10];
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf ("++++Array of longlong in struc
#include
class c{
public:
long f;
};
static class sss: public c{
public:
float m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf (
#include
class c{
public:
long f;
};
static class sss: public c{
public:
short m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf (
#include
class c{
public:
long f;
};
class c2{
public:
char * f2;
};
static class sss: public c, public c2{
public:
long m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f