Subtract two integer numbers without using subtraction operator

void main(){
    int a,b,d;
    scanf("%d%d",&a,&b);
    d=a+~b+1;
    printf("%d",d);
    getch();
}

Comments

Popular posts from this blog

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples