write a program to add two numbers without using an arithmetic
operator.
Answer / 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 |
In how many ways we can initialize an int variable in C++?
What can c++ be used for?
Is there a new/delete equivalent of realloc?
Who made c++?
What is auto used for in c++?
What is polymorphism & list its types in c++?
What are activex and ole?
What is singleton class in c++?
const char * char * const What is the differnce between the above two?
What are inline functions?
What are different types of polymorphism supported by C++
Explain the difference between new() and malloc() in c++?