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

main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(-b));
printf("a+b="&c);
}

Is This Answer Correct ?    66 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array of structure in c programming?

1252


What is wrong with this initialization?

963


What is the best way to store flag values in a program?

1020


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1218


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1242


What does *p++ do? What does it point to?

1012


Can math operations be performed on a void pointer?

1004


What are void pointers in c?

971


What are called c variables?

1025


What is a shell structure examples?

1048


Can true be a variable name in c?

1002


Why is struct padding needed?

1041


What are the 4 data types?

973


What is the use of ?

1005


Explain what is the benefit of using #define to declare a constant?

1115