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

main()
{
int a,b,c;
printf("enter the values a,b");
scanf("%d%d",&a,&b);
c=a-(~b)-1;
printf("the sum is %d",c);
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give me the code of in-order recursive and non-recursive.

1378


How do you define structure?

1050


Explain how can I avoid the abort, retry, fail messages?

1061


What are the 5 organizational structures?

1033


What is const keyword in c?

1167


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1939


What is difference between constant pointer and constant variable?

1324


What is non linear data structure in c?

1036


What is the concatenation operator?

1157


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1006


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

1104


Write a program to print numbers from 1 to 100 without using loop in c?

1089


How do I get a null pointer in my programs?

1119


Explain void pointer?

1053


Is flag a keyword in c?

1157