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
What is a manipulative person?
When do you call copy constructors?
How do I run c++?
What is the meaning of string in c++?
To which numbering system can the binary number 1101100100111100 be easily converted to?
What are put and get pointers?
Should I learn c++ c?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
what are Access specifiers in C++ class? What are the types?
What does obj stand for?
What are the advantages of pointers?
Define what is constructor?
Are php strings immutable?
What is iterator c++?
What are built-in functions? What is the syntax for the definition?