Hi,

Thanks to everyone I was able to submit my huffman coding assignment successfully.Now I've got to do arithmetic coding and it seems really confusing.I've looked at arturo campos's page
http://www.arturocampos.com/ac_arithmetic.html

and havent understood using the range 0000h to ffffh instead of [0,1) and adjusting probabilities to be limited to 16 bits.I'm kinda lost there.Any help is appreciated.

>>range 0000h to ffffh instead of [0,1)
0xffff is -1 not +1 in signed short integer, but unsigned short integer its a pretty huge number -- for exact value see your limits.h header file. With 16-bit compilers a short and an int may be the same size, but on 32-bit compilers they are probably different sizes.