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

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

1125


Explain how can a program be made to print the name of a source file where an error occurs?

1197


Explain 'far' and 'near' pointers in c.

1144


Why isn't any of this standardized in c? Any real program has to do some of these things.

1214


formula to convert 2500mmh2o into m3/hr

1000


Explain what is meant by high-order and low-order bytes?

1051


Why malloc is faster than calloc?

1067


What are the types of type specifiers?

1045


Write a program to show the change in position of a cursor using c

1070


Why doesnt that code work?

1183


What is the use of sizeof () in c?

1059


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2327


What is the difference between local variable and global variable in c?

1237


How macro execution is faster than function ?

1198


What are the __date__ and __time__ preprocessor commands?

1120