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 are the advantages of early binding?
What is a namespace in c++?
What is vector processing?
why we cant create array of refrences
Is c++ a programming language?
What is meant by the term name mangling in c++?
What is the use of default constructor?
What are structs in c++?
What is the need of a destructor?
Explain what happens when a pointer is deleted twice?
If a header file is included twice by mistake in the program, will it give any error?
What is the difference between the functions rand(), random(), srand() and randomize()?