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 a shell structure examples?

1029


Explain enumerated types.

978


How can you be sure that a program follows the ANSI C standard?

1561


What is a pragma?

1078


How can I do serial ("comm") port I/O?

1131


difference between Low, Middle, High Level languages in c ?

2024


Can you tell me how to check whether a linked list is circular?

1325


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1085


What are the different categories of functions in c?

1082


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1019


How do you generate random numbers in C?

1146


FILE PROGRAMMING

2179


What are all different types of pointers in c?

958


What is function prototype in c language?

983


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1677