Demo entry 6763788

foo

   

Submitted by anonymous on Oct 26, 2018 at 01:24
Language: C. Code size: 244 Bytes.

#include <stdint.h>
typedef union regist {
        uint64_t u;
        int64_t  i;
        double   f;
} regist;

struct foo {
	regist A;
	regist B;
};

#define FOO(X) ( X > 0 ? foo.A : foo.B)

int main() {
	struct foo foo;
	return FOO(0).u;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).