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

What is .obj file in c?

1071


What is indirection? How many levels of pointers can you have?

1117


What is the use of getchar functions?

1170


Is c is a procedural language?

1076


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1190


Can an array be an Ivalue?

1081


c program for searching a student details among 10 student details

2083


Why doesn't C support function overloading?

2721


how to build a exercise findig min number of e heap with list imlemented?

2068


What is character set?

1159


What is static memory allocation? Explain

1085


Explain what is page thrashing?

1082


What is a structure in c language. how to initialise a structure in c?

1056


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1266


Explain how do you use a pointer to a function?

1093