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 |
Is arr and &arr are same expression for an array?
Tell me an example where stacks are useful?
What is the size of integer variable?
What are templates? where we should use it?
What is the full form nasa?
What is buffer and example?
What is & in c++ function?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What methods can be overridden in java?
What is pointer to member?
What is the difference between reference type and pointers.
Why should we use null or zero in a program?