Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to add two numbers without using arithmetic operators?

Answer Posted / chirantan

//program to add two numbers without using + operator//
#include<stdio.h>
main()
{
int a,b,c;
printf("\n enter two numbers to add\n");
scanf("%d %d", &a,&b);
c=((a*a)-(b*b))/(a-b);
}

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are reserved words?

1100


What are the types of data structures in c?

1144


Difference between pass by reference and pass by value?

1152


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1050


Where are some collections of useful code fragments and examples?

1155


What is the difference between if else and switchstatement

1926


Explain which function in c can be used to append a string to another string?

1086


When should the register modifier be used? Does it really help?

962


Explain what is the concatenation operator?

1161


how to write a c program to print list of fruits in alpabetical order?

2292


find the sum of two matrices and WAP for it.

1131


i want to know the procedure of qualcomm for getting a job through offcampus

2468


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1051


How arrays can be passed to a user defined function

1017


What is unary operator?

1097