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

int sum(int num1,int num2)
{
for(int i=0;i<num2;i++)
num1++;
return num1;
}

Is This Answer Correct ?    39 Yes 50 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is that possible to add pointers to each other?

1331


Differentiate between a for loop and a while loop? What are it uses?

1143


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1058


Can we increase size of array in c?

926


What is the significance of scope resolution operator?

1361


Do pointers store the address of value or the actual value of a variable?

1031


Why is c called a mid-level programming language?

1159


What is the advantage of c?

1058


How do you override a defined macro?

1215


What is the general form of a C program?

981


What are the 5 data types?

1064


why wipro wase

2264


What are the different types of linkage exist in c?

982


What are the features of c language?

1027


What is double pointer in c?

991