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 function prototyping?
What is a syntax in c++?
How do I run a program in notepad ++?
Name the implicit member functions of a class.
What is the error in the code below and how should it be corrected?
Explain linear search.
How does a copy constructor differs from an overloaded assignment operator?
What is setf in c++?
What is c++ try block?
Which ide is best for c++?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
When do we run a shell in the unix system?