answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

long long int add(int,int);

void main()

{

long long int a,b;

printf("Enter the two Numbers: ");

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

printf("Addition of two num. is : %lld",add(a,b));

getch();

}

long long int add(int a, int b)

{

if (!a)

return b;

else

return add((a & b) << 1, a ^ b);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


How a program in c that will add 2 numbers without using any plus operator?

int main() { int a=10,b=20; while(a--) b++; printf("%d",b); } or: a -= -b;


How do you turn plain yogurt into a flavored delight without using any fruit with seeds?

add milk


How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


How do you let someone join a factions?

Without any additional plugins, this can be done using the command "/f add".


What is 5614148565285614 514514581451451454?

They are two large numbers, without any operator between them.


Can you play Uno without using any cards"?

No, you cannot play Uno without using any cards.


How do you perform any operation by giving any operator?

You cannot perform any operation by giving any operator. The operation must be valid in the domain and range.For example, you often cannot perform the square rootoperation using the square root operator if your domain and range are integers. At the level of maths that I guess you are at (from this question), the square root of a negative number is not a operation that is defined.


Which operator works like sizeof operator in Java?

Java does not have the sizeOf() operator or any operator that gives an equivalent result.


Use five 0 to make 120 by using any mathematical operator.?

(0! + 0! +0! + 0! + 0!)!


What are the price ranges for using Sky Package HD per month?

The price ranges for using Sky Package HD starts at $28.10 and ends up around $75 for the basic packages without any extra add ons. There are many add ons that one can choose from.


What is the largest number can be formed using the digit 987654321and 0 without repeating any of the digits?

9876543210, without using any mathemeatical operations.