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 / rajkumar

#include<stdio.h>
#include<conio.h>
void main()
{
int a=6,b=3,sum=0;
sum=a^b;
printf("sum=%d",sum);
getch();
}

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are negative numbers true in c?

1060


develop algorithms to add polynomials (i) in one variable

2163


How can you tell whether two strings are the same?

1250


When should the volatile modifier be used?

1170


What is an operator?

1070


Difference between malloc() and calloc() function?

1199


Can a variable be both constant and volatile?

1112


What is extern storage class in c?

992


Can an array be an Ivalue?

1089


What is the difference between formatted&unformatted i/o functions?

1053


What is meant by type specifiers?

1128


How can I make sure that my program is the only one accessing a file?

1261


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2294


What is the purpose of sprintf?

1128


What is string concatenation in c?

1092