hello.... guys
what is the meaning of this "~"symbol in c++?
please help me some one............ ..
what is the meaning of this "~"symbol in c++?
please help me some one............ ..
unsigned char a = 5; short b = 0; int c = -1; int d = 1; int e; e = !a; // result = 0 e = !b; // result = 1 e = !c; // result = 0 e = !d; // result = 0 e = ~a; // result = 0xFFFA (which encodes -6) e = ~b; // result = 0xFFFF (which encodes -1) e = ~c; // result = 0x0000 (0) e = ~d; // result = 0xFFFE (which encodes -2)
Comment