Neelesh K J Jain wrote:
for e.g., xFFFF should utilize only 2 bytes, instead of 4 bytes.
What? How the hell is that going to happen? Run the following code and see if you get a clue.
char buf[5];
itoa( 0xf, buf, 16);
cout << buf << endl;
itoa( 0xff, buf, 16);
cout << buf << endl;
itoa( 0xfff, buf, 16);
cout << buf << endl;
itoa( 0xffff, buf, 16);
cout << buf << endl;