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
Can you please explain the difference between using macro and inline functions?
Can I learn c++ in a week?
What is srand c++?
Can a class be static in c++?
Explain differences between alloc() and free()?
What is a constant reference?
What is #include iostream?
What is using namespace std in c++?
What language does google use?
Define what is constructor?
What is #include sstream?
Explain what is class definition in c++ ?
What's the order in which the objects in an array are destructed?
Write about the various sections of the executable image?
what are the types of Member Functions?