[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [escepticos] endian-ness



El vie, 03-06-2005 a las 17:33 +0200, Alvaro Rios escribió:

> printf("%d\n", htons(666));
> 
> If it prints 39462 you'r on a machine that uses LITTLE ENDIAN and if it 
> prints 666 you'r on a BIG ENDIAN machine"


Porque comparas con el orden de red que es BIG endian.