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 are the advantages of early binding?

0 Answers  


What is a namespace in c++?

3 Answers  


What is vector processing?

0 Answers  


why we cant create array of refrences

4 Answers  


Is c++ a programming language?

0 Answers  


What is meant by the term name mangling in c++?

0 Answers  


What is the use of default constructor?

0 Answers  


What are structs in c++?

0 Answers  


What is the need of a destructor?

0 Answers  


Explain what happens when a pointer is deleted twice?

0 Answers  


If a header file is included twice by mistake in the program, will it give any error?

0 Answers  


What is the difference between the functions rand(), random(), srand() and randomize()?

0 Answers  


Categories