Skip to main content

Mystery program

This program is system-dependent, it will run correctly on many different systems. Try it on your machine.



#if (VAX || PC)
        #define HEX0 0x6c6c6548
        #define HEX1 0x77202c6f
        #define HEX2 0x646c726f
        #define HEX3 0x00000a21
#else
        #define HEX0 0x48656c6c
        #define HEX1 0x6f2c2077
        #define HEX2 0x6f726c64
        #define HEX3 0x210a0000
#endif

typedef union {
        char what[16];
        long cipher[4];
} mystery;

int main(void)
{
        mystery x;

        x.cipher[0] = HEX0;
        x.cipher[1] = HEX1;
        x.cipher[2] = HEX2;
        x.cipher[3] = HEX3;

        printf("%s", x.what);
        return 0;
}

Isn’t it a wonder?

Comments

Popular posts from this blog

Architecture Complexity

Here are the items to consider: Coding to an interface Service Oriented Architecture Automated Testing Domain Driven Design Custom Data Access Layer Layered architecture Complexity is relatively equal the number of lines of code. Note that complexity is not bad. It must be justified.

Importance of daily meetings

Why are daily meetings important? Yes I know what you are thinking, to check if the schedule is on target, to spot showstoppers, roadblocks and whatnots. But aside from those, there are things that make daily meetings rewarding. Let’s face it, some people (including me) find it hard oftentimes to achieve a certain level of focus at work especially when multitasking is inevitable. Meetings will remind us of our commitments infront of our peers. Since most of us will be ashamed of not making any progress, it will trigger ourselves to do something about it. In my opinion, having daily meetings typically before the shift starts will help a lot of peers suffering from bad habits - procrastination. It is one way of invigorating those who have not found their way out yet. “Keep each other in the zone, what are teammates for?”