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
List down the guideline that should be followed while using friend function.
Out of fgets() and gets() which function is safe to use and why?
Explain shallow copy?
What are the types of pointer?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is the advantage of an external iterator.
What is the rule of three?
What are pointers used for c++?
Explain virtual class?
Is linux written in c or c++?
Do you know the use of vtable?
what are the iterator and generic algorithms.
What is buffering in c++?
what is data encapsulation in C++?
What is the difference between a baller and a reference in C++?