夜の抜ける

A blog about anything and everything :P.

Hola Mundo

leave a comment »

Lamentablemente el concurso de hola mundos de CLD no le hizo justicia a mi versión, así que decidí mejorarla :).

hola-mundo.c:

#include <stdio.h>
#include <stdint.h>

int main()
{
        uint64_t w = 0x29e4755a00b1e8;
        for (int t = w >> 062; t--; w >>= 5)
                putchar((w & 037) + 0100 >> !(w & 037));
        putchar(w);
        return 0;
}

Para compilar: c99 hola-mundo.c -o hola-mundo

Written by Ismael Luceno

2009-04-22 at 14:00

Posted in Uncategorized

Leave a Reply