Intendi questo ?
codice:
int number = 3;

printf("%d\n", number);

number = (~number) + 1;

printf("%d\n", number);