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 |
What is a vector c++?
What is the difference between equal to (==) and assignment operator (=)?
the first character in the variable name must be an a) special symbol b) number c) alphabet
Why is "using namespace std;" considered bad practice?
write a program that takes two numbers from user that prints the smallest number
When does a 'this' pointer get created?
Differentiate between declaration and definition in C++?
What is implicit pointer in c++?
When should overload new operator on a global basis or a class basis?
What is size of Empty Class?
make a middle node of doubly linklist to the top of the list
What is c++ redistributable?