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...

write a c program to add two integer numbers without using
arithmetic operator +

Answer Posted / sushma sarma

#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter a and b";
cin>>a;
cin>>b;
while(a!=0)
{
++b;
a--;
}
cout<<b;
return 0;
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you use a type cast?

1129


How can I write a function analogous to scanf?

1186


What are the application of c?

1102


write a c program in such a way that if we enter the today date the output should be next day's date.

2196


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1140


Difference between malloc() and calloc() function?

1206


write a program to print largest number of each row of a 2D array

2327


Write a program to reverse a linked list in c.

1135


How can I change their mode to binary?

1121


Whats s or c mean?

1027


What is the purpose of clrscr () printf () and getch ()?

1073


What is the use of parallelize in spark?

1030


What are the 4 types of organizational structures?

1106


How can I avoid the abort, retry, fail messages?

1138


When should the volatile modifier be used?

1184