add two numbers bitwise
public class Bitwise_Addition{
int add(int a, int b){
int c;
while(b!=0){
c=a&b;
a=a^b;
b=c<<1;
}
return a;
}
}
add two numbers bitwise
public class Bitwise_Addition{
int add(int a, int b){
int c;
while(b!=0){
c=a&b;
a=a^b;
b=c<<1;
}
return a;
}
}
add 2 numbers in c
#include<stdio.h>
int main() {
int a, b, sum;
printf("nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us