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 function declaration in c++ with example?

1021


What are the three forms of cin.get() and what are their differences?

1167


what do you mean by volatile variable?

996


Explain function overloading

971


What are references in c++? What is a local reference?

990


Why ctype h is used in c++?

921


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1011


Define pure virtual function?

945


Which of the following is evaluated first: a) && b) || c) !

2320


What are the two types of comments, and how do they differ?

1062


Why do we use string in c++?

895


What is the role of C++ shorthand's?

1238


Can a new be used in place of old mallocq? If yes, why?

1045


How to declare an array of pointers to integer?

1094


Distinguish between a # include and #define.

1095