I found a source code in C language. I take from here :link:
#include<stdio.h>
int main()
{
int a,b,hasil;
printf("Masukan integer pertama: ");
scanf("%d",&a);
printf("Masukan integer kedua: ");
scanf("%d",&b);
hasil = a - ~b -1;
printf("Hasil tambah kedua-dua integer :%d",hasil);
return 0;
}
Seem, the code don't use "+" or "- -" operation to add thus two integers.
Can anybody tell me, what are this technique or concept be used?