Quantcast
Channel: BCA HUB » Programing Fun
Viewing all articles
Browse latest Browse all 10

C program to Subtract two integer numbers without using subtraction operator

$
0
0

Write a C program to Subtract two integer numbers without using subtraction operator ?



#include<stdio.h>

void main()

{

int a,b,d;

scanf("%d%d",&a,&b);

d=a+~b+1;

printf("%d",d);

}

Share


Viewing all articles
Browse latest Browse all 10

Trending Articles