Code:
	int x = 129;
	char m = (char)x & 255;
	cout<<m<<endl;
now let us say, given m , how can i retrieve x ? how can i do the opposite thing ?

i tried this way,...
Code:
int y;
    if(m>127)  y = 256 + (int)m;
	else
	 y = (int)m;

	cout<<y<<endl;
....but its not working.can u suggest some way ?