Write A Program Without Using Subtraction Operator

7/20/2013 11:14:00 pm Unknown 0 Comments


#include<stdio.h>
#include<conio.h>

int main(){

    int l,m;
    int sum;

    printf("Enter any two integers: ");
    scanf("%d%d",&l,&m);

    sum = l+ ~m + 1;

    printf("Difference of two integers: %d",sum);

    getch();
}