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

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can the sizeof operator be used to tell the size of an array passed to a function?

1177


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1291


Write a simple code fragment that will check if a number is positive or negative.

1209


State two uses of pointers in C?

1108


What is #ifdef ? What is its application?

1165


When the macros gets expanded?

1486


What does stand for?

1142


What is the difference between test design and test case design?

2133


Does c have function or method?

1062


Is a pointer a kind of array?

1247


What is scanf () in c?

1172


How do we declare variables in c?

1117


Why C language is a procedural language?

1095


What is nested structure in c?

1118


What are multibyte characters?

1191