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
How does work in c++?
Give 10 points of differences between C & C++.
What is switch case in c++ syntax?
Do we have to use initialization list in spite of the assignment in constructors?
What is pointer with example?
What is the difference between c++ and turbo c++?
What is null and void pointer?
What are the sizes and ranges of the basic c++ data types?
Is main a class in c++?
Which is the best c++ compiler?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is meant by a delegate?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What are the basic data types used in c++?
When does the c++ compiler create temporary variables?