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
What is std namespace in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is the meaning of c++?
What is the use of setprecision in c++?
What does ios :: app do in c++?
What is the return value of the insertion operator?
What is a manipulator in c++?
Can a constructor return a value?
What is the type of 'this' pointer?
What do you mean by function pointer?
What is function prototyping?
What is the use of seekg in c++?
What kind of problems can be solved by a namespace?
What are keywords in c++?
How is c++ used in the real world?