2 Jun
2003
2 Jun
'03
05:31
On Mon, 2 Jun 2003, Raúl Gutiérrez Segalés wrote:
Hi,
I am trying to do a NOT operation but it doesnt seem to work well:
Sorry I meant 1's complement.
unsigned int i=8;
printf("%d \n", ~i);
This is suppose to print 247 but I get -9
Any ideas of what am I doing wrong ?
BTW, I am just practicing on playing with bits..
Thanks, Raul
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e