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

How does work in c++?

1025


Give 10 points of differences between C & C++.

1085


What is switch case in c++ syntax?

1048


Do we have to use initialization list in spite of the assignment in constructors?

937


What is pointer with example?

978


What is the difference between c++ and turbo c++?

1101


What is null and void pointer?

997


What are the sizes and ranges of the basic c++ data types?

991


Is main a class in c++?

961


Which is the best c++ compiler?

991


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

1049


What is meant by a delegate?

1032


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1083


What are the basic data types used in c++?

998


When does the c++ compiler create temporary variables?

989