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
Which is the best c++ compiler?
Describe private, protected and public – the differences and give examples.
Can we make any program in c++ without using any header file and what is the shortest program in c++.
In the derived class, which data member of the base class are visible?
What are function prototypes?
Can I learn c++ without c?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is the difference between reference and pointer?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is the difference between struct and class?
If dog is a friend of boy, is boy a friend of dog?
Who made c++?
Explain what is polymorphism in c++?
What is an iterator?
What is c++ programming language?