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

even this gives the same ans as the above program gives...
just every one plz check it and tell me
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c;
printf("enter the nos");
scanf("%d %d",&b,&c);
a= (b^c);
printf("%d",a);
return 0;
}

Is This Answer Correct ?    19 Yes 114 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I write a function that takes a format string and a variable number of arguments?

1103


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1268


What are the different types of pointers used in c language?

1101


Explain the use of #pragma exit?

1217


What is array within structure?

1174


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1137


Why static is used in c?

1145


Why can't I perform arithmetic on a void* pointer?

1160


How can you pass an array to a function by value?

1178


FILE PROGRAMMING

2296


int i=10; printf("%d %d %d", i, i=20, i);

1699


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1981


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1311


What is identifier in c?

1063


Is there anything like an ifdef for typedefs?

1222