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...

how to add two numbers without using arithmetic operators?

Answer Posted / rajkumar

#include<stdio.h>
#include<conio.h>
void main()
{
int a=6,b=3,sum=0;
sum=a^b;
printf("sum=%d",sum);
getch();
}

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When was c language developed?

1144


How can I open a file so that other programs can update it at the same time?

1143


How does placing some code lines between the comment symbol help in debugging the code?

952


How pointers are declared?

918


What is c value paradox explain?

1031


What is function and its example?

1125


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

1020


Which node is more powerful and can handle local information processing or graphics processing?

1270


Define VARIABLE?

1118


What is difference between function overloading and operator overloading?

1056


what is event driven software and what is procedural driven software?

2516


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2212


What is the size of structure in c?

1105


what are bit fields in c?

1611


How will you write a code for accessing the length of an array without assigning it to another variable?

1013