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 |
Difference between linked list and array?
Can I learn c++ without knowing c?
How would you obtain segment and offset addresses from a far address of a memory location?
What is math h in c++?
Which of the following operator cannot be overloaded?
What is the benefit of encapsulation?
What is a pdb file?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What apps are written in c++?
Why are arrays usually processed with for loop?
Is map ordered c++?
Should you pass exceptions by value or by reference?