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 program to add two numbers without using an arithmetic
operator.



write a program to add two numbers without using an arithmetic operator...

Answer / mogankumar pc

#include<stdio.h>
#include<conio.h>
int main()
{
int first,second;
printf("enter the two numbers");
scanf("%d%d",&first,&second);
first+= second;
printf("RESULT:%d",first);
getch();
return 0;
}
//+= is not arithmetic operator; its assignment operator

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More C++ General Interview Questions

In how many ways we can initialize an int variable in C++?

1 Answers  


What can c++ be used for?

0 Answers  


Is there a new/delete equivalent of realloc?

1 Answers  


Who made c++?

0 Answers  


What is auto used for in c++?

0 Answers  


What is polymorphism & list its types in c++?

0 Answers  


What are activex and ole?

0 Answers  


What is singleton class in c++?

0 Answers  


const char * char * const What is the differnce between the above two?

11 Answers   TCS,


What are inline functions?

3 Answers   Fidelity, Verizon,


What are different types of polymorphism supported by C++

2 Answers   CA, GameLoft,


Explain the difference between new() and malloc() in c++?

0 Answers  


Categories