-6

so here is my code : The aNSWER is -36
is -36 written as sign bit notation ?
i cant understand the bitwise conversion giong on, in using Dev c++

#include <iostream>
#include<conio.h>
using namespace std;
int main() {
printf("%d",~35);
getch();
}

1 Answers1

-2

Most significant bit determines if the number is negative or positive.

prq
  • 271
  • 2
  • 9