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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best c++ compiler?

997


Describe private, protected and public – the differences and give examples.

1133


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1078


In the derived class, which data member of the base class are visible?

1072


What are function prototypes?

1197


Can I learn c++ without c?

1102


Which bit wise operator is suitable for checking whether a particular bit is on or off?

976


What is the difference between reference and pointer?

1104


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1133


What is the difference between struct and class?

1445


If dog is a friend of boy, is boy a friend of dog?

936


Who made c++?

1027


Explain what is polymorphism in c++?

1089


What is an iterator?

1150


What is c++ programming language?

1062