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

What is std namespace in c++?

1227


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1157


What is the meaning of c++?

1070


What is the use of setprecision in c++?

1052


What does ios :: app do in c++?

1089


What is the return value of the insertion operator?

1175


What is a manipulator in c++?

1274


Can a constructor return a value?

1345


What is the type of 'this' pointer?

1058


What do you mean by function pointer?

1163


What is function prototyping?

1165


What is the use of seekg in c++?

1096


What kind of problems can be solved by a namespace?

1134


What are keywords in c++?

1154


How is c++ used in the real world?

1089