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

What does new in c++ do?

0 Answers  


What is the header file for setw?

0 Answers  


Explain the advantages of using friend classes.

0 Answers  


What are the advantages of using typedef in a program?

0 Answers  


What is a built-in function?

1 Answers  


Adobe Interview & Adobe Placement Paper

1 Answers   Adobe,


Define private, protected and public access control.

0 Answers  


Will c++ be replaced?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


How would you obtain segment and offset addresses from a far address of a memory location?

0 Answers  


What is #include iostream?

0 Answers  


What is format for defining a structure?

0 Answers  


Categories